this.hashAlgorithm = AlgorithmIdentifier.getInstance(seq.getObjectAt(0)); this.hashedMessage = ASN1OctetString.getInstance(seq.getObjectAt(1)).getOctets();
this.hashAlgorithm = hashAlgorithm; this.hashedMessage = hashedMessage;
return hashAlgorithm;
return hashedMessage;
paramoreturna MessageImprint object. if (o == null || o instanceof MessageImprint) { return (MessageImprint)o; } else if (o instanceof ASN1Sequence) { return new MessageImprint((ASN1Sequence)o); } throw new IllegalArgumentException("Bad object in factory.");
if (o == null || o instanceof MessageImprint) { return (MessageImprint)o; } else if (o instanceof ASN1Sequence) { return new MessageImprint((ASN1Sequence)o); } throw new IllegalArgumentException("Bad object in factory.");
MessageImprint ::= SEQUENCE { hashAlgorithm AlgorithmIdentifier, hashedMessage OCTET STRING } ASN1EncodableVector v = new ASN1EncodableVector(); v.add(hashAlgorithm); v.add(new DEROctetString(hashedMessage)); return new DERSequence(v);
MessageImprint ::= SEQUENCE { hashAlgorithm AlgorithmIdentifier, hashedMessage OCTET STRING }
ASN1EncodableVector v = new ASN1EncodableVector(); v.add(hashAlgorithm); v.add(new DEROctetString(hashedMessage)); return new DERSequence(v);