this.algorithm = algorithm; this.publicKey = new DERBitString(publicKey);
algorithm = AlgorithmIdentifier.getInstance(seq.getObjectAt(0)); publicKey = (DERBitString)seq.getObjectAt(1);
return algorithm;
return an OriginatorPublicKey object from a tagged object.paramobj the tagged object holding the object we want.paramexplicit true if the object is meant to be explicitly tagged false otherwise.exceptionIllegalArgumentException if the object held by the tagged object cannot be converted. return getInstance(ASN1Sequence.getInstance(obj, explicit));
return getInstance(ASN1Sequence.getInstance(obj, explicit));
return an OriginatorPublicKey object from the given object.paramobj the object we want converted.exceptionIllegalArgumentException if the object cannot be converted. if (obj == null || obj instanceof OriginatorPublicKey) { return (OriginatorPublicKey)obj; } if (obj instanceof ASN1Sequence) { return new OriginatorPublicKey((ASN1Sequence)obj); } throw new IllegalArgumentException("Invalid OriginatorPublicKey: " + obj.getClass().getName());
if (obj == null || obj instanceof OriginatorPublicKey) { return (OriginatorPublicKey)obj; } if (obj instanceof ASN1Sequence) { return new OriginatorPublicKey((ASN1Sequence)obj); } throw new IllegalArgumentException("Invalid OriginatorPublicKey: " + obj.getClass().getName());
return publicKey;
Produce an object suitable for an ASN1OutputStream. OriginatorPublicKey ::= SEQUENCE { algorithm AlgorithmIdentifier, publicKey BIT STRING } ASN1EncodableVector v = new ASN1EncodableVector(); v.add(algorithm); v.add(publicKey); return new DERSequence(v);
OriginatorPublicKey ::= SEQUENCE { algorithm AlgorithmIdentifier, publicKey BIT STRING }
ASN1EncodableVector v = new ASN1EncodableVector(); v.add(algorithm); v.add(publicKey); return new DERSequence(v);