Class OtherHashAlgAndValue

java.lang.Object
es.juntadeandalucia.afirma.client.util.signatureFormat.OtherHashAlgAndValue
All Implemented Interfaces:
iaik.asn1.ASN1Type

public class OtherHashAlgAndValue extends Object implements iaik.asn1.ASN1Type
OtherHash ::= CHOICE { sha1Hash OtherHashValue, -- This contains a SHA-1 hash otherHash OtherHashAlgAndValue}
Author:
SEMRYC
  • Constructor Details

    • OtherHashAlgAndValue

      public OtherHashAlgAndValue()
    • OtherHashAlgAndValue

      public OtherHashAlgAndValue(iaik.asn1.structures.AlgorithmID algorithmParam, iaik.asn1.OCTET_STRING hashParam)
    • OtherHashAlgAndValue

      public OtherHashAlgAndValue(iaik.asn1.ASN1Object obj) throws iaik.asn1.CodingException
      Throws:
      iaik.asn1.CodingException
  • Method Details

    • getAlgorithm

      public iaik.asn1.structures.AlgorithmID getAlgorithm()
    • getHash

      public byte[] getHash() throws IOException
      Throws:
      IOException
    • setAlgorithm

      public void setAlgorithm(iaik.asn1.structures.AlgorithmID algorithmParam)
    • setHash

      public void setHash(byte[] hashParam)
    • toASN1Object

      public iaik.asn1.ASN1Object toASN1Object() throws iaik.asn1.CodingException
      Specified by:
      toASN1Object in interface iaik.asn1.ASN1Type
      Throws:
      iaik.asn1.CodingException
      See Also:
      • ASN1Type.toASN1Object()
    • decode

      public void decode(iaik.asn1.ASN1Object obj) throws iaik.asn1.CodingException
      Specified by:
      decode in interface iaik.asn1.ASN1Type
      Throws:
      iaik.asn1.CodingException
    • toString

      public String toString()
      Overrides:
      toString in class Object