Class OtherHashAlgAndValue
java.lang.Object
es.juntadeandalucia.afirma.client.util.signatureFormat.OtherHashAlgAndValue
- All Implemented Interfaces:
iaik.asn1.ASN1Type
OtherHash ::= CHOICE {
sha1Hash OtherHashValue, -- This contains a SHA-1 hash
otherHash OtherHashAlgAndValue}
- Author:
- SEMRYC
-
Constructor Summary
ConstructorsConstructorDescriptionOtherHashAlgAndValue(iaik.asn1.ASN1Object obj) OtherHashAlgAndValue(iaik.asn1.structures.AlgorithmID algorithmParam, iaik.asn1.OCTET_STRING hashParam) -
Method Summary
Modifier and TypeMethodDescriptionvoiddecode(iaik.asn1.ASN1Object obj) iaik.asn1.structures.AlgorithmIDbyte[]getHash()voidsetAlgorithm(iaik.asn1.structures.AlgorithmID algorithmParam) voidsetHash(byte[] hashParam) iaik.asn1.ASN1ObjecttoString()
-
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
- 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:
toASN1Objectin interfaceiaik.asn1.ASN1Type- Throws:
iaik.asn1.CodingException- See Also:
-
decode
public void decode(iaik.asn1.ASN1Object obj) throws iaik.asn1.CodingException - Specified by:
decodein interfaceiaik.asn1.ASN1Type- Throws:
iaik.asn1.CodingException
-
toString
-