/** * Return the bytes making up the signature associated with this attribute certificate. * * @return the attribute certificate signature bytes. */ public byte[] getSignature() { return x509Certificate.getSignature().getOctets(); }
public byte[] getSignature() { return c.getSignature().getOctets(); }
public byte[] getSignature() { return c.getSignature().getOctets(); }
/** * Return the bytes making up the signature associated with this attribute certificate. * * @return the attribute certificate signature bytes. */ public byte[] getSignature() { return attrCert.getSignatureValue().getOctets(); }
/** * Return the bytes making up the signature associated with this request. * * @return the request signature bytes. */ public byte[] getSignature() { return certificationRequest.getSignature().getOctets(); }
/** * Return the bytes making up the signature associated with this attribute certificate. * * @return the attribute certificate signature bytes. */ public byte[] getSignature() { return x509Certificate.getSignature().getOctets(); }
/** * Return the bytes making up the signature associated with this request. * * @return the request signature bytes. */ public byte[] getSignature() { return certificationRequest.getSignature().getOctets(); }
/** * Return the bytes making up the signature associated with this attribute certificate. * * @return the attribute certificate signature bytes. */ public byte[] getSignature() { return attrCert.getSignatureValue().getOctets(); }
public byte[] getSignature() { return c.getSignature().getOctets(); }
public byte[] getSignature() { return cert.getSignatureValue().getOctets(); }
public byte[] getSignature() { return c.getSignature().getOctets(); }
public byte[] getSignature() { return resp.getSignature().getOctets(); }
public byte[] getSignature() { return resp.getSignature().getOctets(); }
/** * for when the public key is an encoded object - if the bitstring * can't be decoded this routine throws an IOException. * * @exception IOException - if the bit string doesn't represent a DER * encoded object. * @return the public key as an ASN.1 primitive. */ public ASN1Primitive parsePublicKey() throws IOException { ASN1InputStream aIn = new ASN1InputStream(keyData.getOctets()); return aIn.readObject(); }
/** * If the public key is an encoded object this will return the ASN.1 primitives encoded - if the bitstring * can't be decoded this routine throws an IOException. * * @exception IOException - if the bit string doesn't represent a DER encoded object. * @return the public key as an ASN.1 primitive. */ public ASN1Primitive parsePublicKey() throws IOException { return ASN1Primitive.fromByteArray(getSubjectPublicKey().getOctets()); }
/** * for when the public key is an encoded object - if the bitstring * can't be decoded this routine throws an IOException. * * @exception IOException - if the bit string doesn't represent a DER * encoded object. * @deprecated use parsePublicKey * @return the public key as an ASN.1 primitive. */ public ASN1Primitive getPublicKey() throws IOException { ASN1InputStream aIn = new ASN1InputStream(keyData.getOctets()); return aIn.readObject(); }
public byte[] getSignature() { if (!this.isSigned()) { return null; } return req.getOptionalSignature().getSignature().getOctets(); }
public byte[] getSignature() { if (!this.isSigned()) { return null; } return req.getOptionalSignature().getSignature().getOctets(); }
public boolean isSignatureValid(ContentVerifierProvider verifierProvider) throws OperatorCreationException, IOException { ContentVerifier verifier = verifierProvider.get(spkacSeq.getSignatureAlgorithm()); OutputStream sOut = verifier.getOutputStream(); DEROutputStream dOut = new DEROutputStream(sOut); dOut.writeObject(spkacSeq.getPublicKeyAndChallenge()); sOut.close(); return verifier.verify(spkacSeq.getSignature().getOctets()); }
public boolean isSignatureValid(ContentVerifierProvider verifierProvider) throws OperatorCreationException, IOException { ContentVerifier verifier = verifierProvider.get(spkacSeq.getSignatureAlgorithm()); OutputStream sOut = verifier.getOutputStream(); DEROutputStream dOut = new DEROutputStream(sOut); dOut.writeObject(spkacSeq.getPublicKeyAndChallenge()); sOut.close(); return verifier.verify(spkacSeq.getSignature().getOctets()); }