/** * @see java.security.cert.X509Extension#getExtensionValue(String) * method documentation for more info */ public byte[] getExtensionValue(String oid) { if (extensions == null) { return null; } Extension ext = extensions.getExtensionByOID(oid); return (ext == null) ? null : ext.getRawExtnValue(); }
/** * @see java.security.cert.X509Extension#getExtensionValue(String) * method documentation for more info */ public byte[] getExtensionValue(String oid) { if (extensions == null) { return null; } Extension ext = extensions.getExtensionByOID(oid); return (ext == null) ? null : ext.getRawExtnValue(); }
@Override public byte[] getExtensionValue(String oid) { if (extensions == null) { return null; } // retrieve the info from the cached extensions object Extension ext = extensions.getExtensionByOID(oid); return (ext == null) ? null : ext.getRawExtnValue(); }
/** * Returns the value of Subject Alternative Name (OID = 2.5.29.17). * The ASN.1 definition for Subject Alternative Name is: * * <pre> * id-ce-subjectAltName OBJECT IDENTIFIER ::= { id-ce 17 } * * SubjectAltName ::= GeneralNames * </pre> * (as specified in RFC 3280) * * @return Returns the collection of pairs: * (Integer (tag), Object (name value)) if extension presents, and * null if does not. */ public Collection<List<?>> valueOfSubjectAlternativeName() throws IOException { return decodeGeneralNames(getExtensionByOID("2.5.29.17")); }
/** * Returns the value of Issuer Alternative Name Extension (OID = 2.5.29.18). * The ASN.1 definition for Issuer Alternative Name is: * * <pre> * id-ce-issuerAltName OBJECT IDENTIFIER ::= { id-ce 18 } * * IssuerAltName ::= GeneralNames * </pre> * (as specified in RFC 3280) * * @return Returns the collection of pairs: * (Integer (tag), Object (name value)) if extension presents, and * null if does not. */ public Collection<List<?>> valueOfIssuerAlternativeName() throws IOException { return decodeGeneralNames(getExtensionByOID("2.5.29.18")); }
/** * Returns the value of Certificate Issuer Extension (OID = 2.5.29.29). * It is a CRL entry extension and contains the GeneralNames describing * the issuer of revoked certificate. Its ASN.1 notation is as follows: * <pre> * id-ce-certificateIssuer OBJECT IDENTIFIER ::= { id-ce 29 } * * certificateIssuer ::= GeneralNames * </pre> * (as specified in RFC 3280) * * @return the value of Certificate Issuer Extension */ public X500Principal valueOfCertificateIssuerExtension() throws IOException { Extension extension = getExtensionByOID("2.5.29.29"); if (extension == null) { return null; } return ((CertificateIssuer) extension.getDecodedExtensionValue()).getIssuer(); }
/** * Returns the value of Extended Key Usage extension (OID == 2.5.29.37). * The ASN.1 definition of Extended Key Usage Extension is: * * <pre> * id-ce-extKeyUsage OBJECT IDENTIFIER ::= { id-ce 37 } * * ExtKeyUsageSyntax ::= SEQUENCE SIZE (1..MAX) OF KeyPurposeId * * KeyPurposeId ::= OBJECT IDENTIFIER * </pre> * (as specified in RFC 3280) * * @return the list with string representations of KeyPurposeId's OIDs * and null * @throws IOException if extension was incorrectly encoded. */ public List<String> valueOfExtendedKeyUsage() throws IOException { Extension extension = getExtensionByOID("2.5.29.37"); if (extension == null) { return null; } return ((ExtendedKeyUsage) extension.getDecodedExtensionValue()).getExtendedKeyUsage(); }
Extension extension = getExtensionByOID("2.5.29.15"); KeyUsage kUsage; if ((extension == null) || ((kUsage = extension.getKeyUsageValue()) == null)) {
Extension extension = getExtensionByOID("2.5.29.19"); if (extension == null) { return -1;
@Override public byte[] getExtensionValue(String oid) { if (extensions == null) { return null; } // retrieve the info from the cached extensions object Extension ext = extensions.getExtensionByOID(oid); return (ext == null) ? null : ext.getRawExtnValue(); }
/** * @see java.security.cert.X509Extension#getExtensionValue(String) * method documentation for more info */ public byte[] getExtensionValue(String oid) { if (extensions == null) { return null; } Extension ext = extensions.getExtensionByOID(oid); return (ext == null) ? null : ext.getRawExtnValue(); }
/** * @see java.security.cert.X509Extension#getExtensionValue(String) * method documentation for more info */ public byte[] getExtensionValue(String oid) { if (extensions == null) { return null; } Extension ext = extensions.getExtensionByOID(oid); return (ext == null) ? null : ext.getRawExtnValue(); }
@Override public byte[] getExtensionValue(String oid) { if (extensions == null) { return null; } // retrieve the info from the cached extensions object Extension ext = extensions.getExtensionByOID(oid); return (ext == null) ? null : ext.getRawExtnValue(); }
/** * @see java.security.cert.X509Extension#getExtensionValue(String) * method documentation for more info */ public byte[] getExtensionValue(String oid) { if (extensions == null) { return null; } Extension ext = extensions.getExtensionByOID(oid); return (ext == null) ? null : ext.getRawExtnValue(); }
@Override public byte[] getExtensionValue(String oid) { if (extensions == null) { return null; } // retrieve the info from the cached extensions object Extension ext = extensions.getExtensionByOID(oid); return (ext == null) ? null : ext.getRawExtnValue(); }
/** * @see java.security.cert.X509Extension#getExtensionValue(String) * method documentation for more info */ public byte[] getExtensionValue(String oid) { if (extensions == null) { return null; } Extension ext = extensions.getExtensionByOID(oid); return (ext == null) ? null : ext.getRawExtnValue(); }
/** * @see java.security.cert.X509Extension#getExtensionValue(String) * method documentation for more info */ public byte[] getExtensionValue(String oid) { if (extensions == null) { return null; } Extension ext = extensions.getExtensionByOID(oid); return (ext == null) ? null : ext.getRawExtnValue(); }
/** * @see java.security.cert.X509Extension#getExtensionValue(String) * method documentation for more info */ public byte[] getExtensionValue(String oid) { if (extensions == null) { return null; } Extension ext = extensions.getExtensionByOID(oid); return (ext == null) ? null : ext.getRawExtnValue(); }
/** * @see java.security.cert.X509Extension#getExtensionValue(String) * method documentation for more info */ public byte[] getExtensionValue(String oid) { if (extensions == null) { return null; } Extension ext = extensions.getExtensionByOID(oid); return (ext == null) ? null : ext.getRawExtnValue(); }
@Override public byte[] getExtensionValue(String oid) { if (extensions == null) { return null; } // retrieve the info from the cached extensions object Extension ext = extensions.getExtensionByOID(oid); return (ext == null) ? null : ext.getRawExtnValue(); }