Java Code Examples for sun.security.x509.X509CertImpl#getExtendedKeyUsage()

The following examples show how to use sun.security.x509.X509CertImpl#getExtendedKeyUsage() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: X509Certificate.java    From jdk8u-jdk with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Gets an unmodifiable list of Strings representing the OBJECT
 * IDENTIFIERs of the {@code ExtKeyUsageSyntax} field of the
 * extended key usage extension, (OID = 2.5.29.37).  It indicates
 * one or more purposes for which the certified public key may be
 * used, in addition to or in place of the basic purposes
 * indicated in the key usage extension field.  The ASN.1
 * definition for this is:
 * <pre>
 * ExtKeyUsageSyntax ::= SEQUENCE SIZE (1..MAX) OF KeyPurposeId
 *
 * KeyPurposeId ::= OBJECT IDENTIFIER
 * </pre>
 *
 * Key purposes may be defined by any organization with a
 * need. Object identifiers used to identify key purposes shall be
 * assigned in accordance with IANA or ITU-T Rec. X.660 |
 * ISO/IEC/ITU 9834-1.
 * <p>
 * This method was added to version 1.4 of the Java 2 Platform Standard
 * Edition. In order to maintain backwards compatibility with existing
 * service providers, this method is not {@code abstract}
 * and it provides a default implementation. Subclasses
 * should override this method with a correct implementation.
 *
 * @return the ExtendedKeyUsage extension of this certificate,
 *         as an unmodifiable list of object identifiers represented
 *         as Strings. Returns null if this certificate does not
 *         contain an ExtendedKeyUsage extension.
 * @throws CertificateParsingException if the extension cannot be decoded
 * @since 1.4
 */
public List<String> getExtendedKeyUsage() throws CertificateParsingException {
    return X509CertImpl.getExtendedKeyUsage(this);
}
 
Example 2
Source File: X509Certificate.java    From j2objc with Apache License 2.0 2 votes vote down vote up
/**
 * Gets an unmodifiable list of Strings representing the OBJECT
 * IDENTIFIERs of the {@code ExtKeyUsageSyntax} field of the
 * extended key usage extension, (OID = 2.5.29.37).  It indicates
 * one or more purposes for which the certified public key may be
 * used, in addition to or in place of the basic purposes
 * indicated in the key usage extension field.  The ASN.1
 * definition for this is:
 * <pre>
 * ExtKeyUsageSyntax ::= SEQUENCE SIZE (1..MAX) OF KeyPurposeId
 *
 * KeyPurposeId ::= OBJECT IDENTIFIER
 * </pre>
 *
 * Key purposes may be defined by any organization with a
 * need. Object identifiers used to identify key purposes shall be
 * assigned in accordance with IANA or ITU-T Rec. X.660 |
 * ISO/IEC/ITU 9834-1.
 * <p>
 * This method was added to version 1.4 of the Java 2 Platform Standard
 * Edition. In order to maintain backwards compatibility with existing
 * service providers, this method is not {@code abstract}
 * and it provides a default implementation. Subclasses
 * should override this method with a correct implementation.
 *
 * @return the ExtendedKeyUsage extension of this certificate,
 *         as an unmodifiable list of object identifiers represented
 *         as Strings. Returns null if this certificate does not
 *         contain an ExtendedKeyUsage extension.
 * @throws CertificateParsingException if the extension cannot be decoded
 * @since 1.4
 */
public List<String> getExtendedKeyUsage() throws CertificateParsingException {
    return X509CertImpl.getExtendedKeyUsage(this);
}
 
Example 3
Source File: X509Certificate.java    From jdk8u-dev-jdk with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Gets an unmodifiable list of Strings representing the OBJECT
 * IDENTIFIERs of the {@code ExtKeyUsageSyntax} field of the
 * extended key usage extension, (OID = 2.5.29.37).  It indicates
 * one or more purposes for which the certified public key may be
 * used, in addition to or in place of the basic purposes
 * indicated in the key usage extension field.  The ASN.1
 * definition for this is:
 * <pre>
 * ExtKeyUsageSyntax ::= SEQUENCE SIZE (1..MAX) OF KeyPurposeId
 *
 * KeyPurposeId ::= OBJECT IDENTIFIER
 * </pre>
 *
 * Key purposes may be defined by any organization with a
 * need. Object identifiers used to identify key purposes shall be
 * assigned in accordance with IANA or ITU-T Rec. X.660 |
 * ISO/IEC/ITU 9834-1.
 * <p>
 * This method was added to version 1.4 of the Java 2 Platform Standard
 * Edition. In order to maintain backwards compatibility with existing
 * service providers, this method is not {@code abstract}
 * and it provides a default implementation. Subclasses
 * should override this method with a correct implementation.
 *
 * @return the ExtendedKeyUsage extension of this certificate,
 *         as an unmodifiable list of object identifiers represented
 *         as Strings. Returns null if this certificate does not
 *         contain an ExtendedKeyUsage extension.
 * @throws CertificateParsingException if the extension cannot be decoded
 * @since 1.4
 */
public List<String> getExtendedKeyUsage() throws CertificateParsingException {
    return X509CertImpl.getExtendedKeyUsage(this);
}
 
Example 4
Source File: X509Certificate.java    From jdk-1.7-annotated with Apache License 2.0 2 votes vote down vote up
/**
 * Gets an unmodifiable list of Strings representing the OBJECT
 * IDENTIFIERs of the <code>ExtKeyUsageSyntax</code> field of the
 * extended key usage extension, (OID = 2.5.29.37).  It indicates
 * one or more purposes for which the certified public key may be
 * used, in addition to or in place of the basic purposes
 * indicated in the key usage extension field.  The ASN.1
 * definition for this is:
 * <pre>
 * ExtKeyUsageSyntax ::= SEQUENCE SIZE (1..MAX) OF KeyPurposeId<p>
 *
 * KeyPurposeId ::= OBJECT IDENTIFIER<p>
 * </pre>
 *
 * Key purposes may be defined by any organization with a
 * need. Object identifiers used to identify key purposes shall be
 * assigned in accordance with IANA or ITU-T Rec. X.660 |
 * ISO/IEC/ITU 9834-1.
 * <p>
 * This method was added to version 1.4 of the Java 2 Platform Standard
 * Edition. In order to maintain backwards compatibility with existing
 * service providers, this method is not <code>abstract</code>
 * and it provides a default implementation. Subclasses
 * should override this method with a correct implementation.
 *
 * @return the ExtendedKeyUsage extension of this certificate,
 *         as an unmodifiable list of object identifiers represented
 *         as Strings. Returns null if this certificate does not
 *         contain an ExtendedKeyUsage extension.
 * @throws CertificateParsingException if the extension cannot be decoded
 * @since 1.4
 */
public List<String> getExtendedKeyUsage() throws CertificateParsingException {
    return X509CertImpl.getExtendedKeyUsage(this);
}
 
Example 5
Source File: X509Certificate.java    From jdk8u-jdk with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Gets an unmodifiable list of Strings representing the OBJECT
 * IDENTIFIERs of the {@code ExtKeyUsageSyntax} field of the
 * extended key usage extension, (OID = 2.5.29.37).  It indicates
 * one or more purposes for which the certified public key may be
 * used, in addition to or in place of the basic purposes
 * indicated in the key usage extension field.  The ASN.1
 * definition for this is:
 * <pre>
 * ExtKeyUsageSyntax ::= SEQUENCE SIZE (1..MAX) OF KeyPurposeId
 *
 * KeyPurposeId ::= OBJECT IDENTIFIER
 * </pre>
 *
 * Key purposes may be defined by any organization with a
 * need. Object identifiers used to identify key purposes shall be
 * assigned in accordance with IANA or ITU-T Rec. X.660 |
 * ISO/IEC/ITU 9834-1.
 * <p>
 * This method was added to version 1.4 of the Java 2 Platform Standard
 * Edition. In order to maintain backwards compatibility with existing
 * service providers, this method is not {@code abstract}
 * and it provides a default implementation. Subclasses
 * should override this method with a correct implementation.
 *
 * @return the ExtendedKeyUsage extension of this certificate,
 *         as an unmodifiable list of object identifiers represented
 *         as Strings. Returns null if this certificate does not
 *         contain an ExtendedKeyUsage extension.
 * @throws CertificateParsingException if the extension cannot be decoded
 * @since 1.4
 */
public List<String> getExtendedKeyUsage() throws CertificateParsingException {
    return X509CertImpl.getExtendedKeyUsage(this);
}
 
Example 6
Source File: X509Certificate.java    From jdk8u_jdk with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Gets an unmodifiable list of Strings representing the OBJECT
 * IDENTIFIERs of the {@code ExtKeyUsageSyntax} field of the
 * extended key usage extension, (OID = 2.5.29.37).  It indicates
 * one or more purposes for which the certified public key may be
 * used, in addition to or in place of the basic purposes
 * indicated in the key usage extension field.  The ASN.1
 * definition for this is:
 * <pre>
 * ExtKeyUsageSyntax ::= SEQUENCE SIZE (1..MAX) OF KeyPurposeId
 *
 * KeyPurposeId ::= OBJECT IDENTIFIER
 * </pre>
 *
 * Key purposes may be defined by any organization with a
 * need. Object identifiers used to identify key purposes shall be
 * assigned in accordance with IANA or ITU-T Rec. X.660 |
 * ISO/IEC/ITU 9834-1.
 * <p>
 * This method was added to version 1.4 of the Java 2 Platform Standard
 * Edition. In order to maintain backwards compatibility with existing
 * service providers, this method is not {@code abstract}
 * and it provides a default implementation. Subclasses
 * should override this method with a correct implementation.
 *
 * @return the ExtendedKeyUsage extension of this certificate,
 *         as an unmodifiable list of object identifiers represented
 *         as Strings. Returns null if this certificate does not
 *         contain an ExtendedKeyUsage extension.
 * @throws CertificateParsingException if the extension cannot be decoded
 * @since 1.4
 */
public List<String> getExtendedKeyUsage() throws CertificateParsingException {
    return X509CertImpl.getExtendedKeyUsage(this);
}
 
Example 7
Source File: X509Certificate.java    From openjdk-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Gets an unmodifiable list of Strings representing the OBJECT
 * IDENTIFIERs of the {@code ExtKeyUsageSyntax} field of the
 * extended key usage extension, (OID = 2.5.29.37).  It indicates
 * one or more purposes for which the certified public key may be
 * used, in addition to or in place of the basic purposes
 * indicated in the key usage extension field.  The ASN.1
 * definition for this is:
 * <pre>
 * ExtKeyUsageSyntax ::= SEQUENCE SIZE (1..MAX) OF KeyPurposeId
 *
 * KeyPurposeId ::= OBJECT IDENTIFIER
 * </pre>
 *
 * Key purposes may be defined by any organization with a
 * need. Object identifiers used to identify key purposes shall be
 * assigned in accordance with IANA or ITU-T Rec. X.660 |
 * ISO/IEC/ITU 9834-1.
 * <p>
 * This method was added to version 1.4 of the Java 2 Platform Standard
 * Edition. In order to maintain backwards compatibility with existing
 * service providers, this method is not {@code abstract}
 * and it provides a default implementation. Subclasses
 * should override this method with a correct implementation.
 *
 * @return the ExtendedKeyUsage extension of this certificate,
 *         as an unmodifiable list of object identifiers represented
 *         as Strings. Returns null if this certificate does not
 *         contain an ExtendedKeyUsage extension.
 * @throws CertificateParsingException if the extension cannot be decoded
 * @since 1.4
 */
public List<String> getExtendedKeyUsage() throws CertificateParsingException {
    return X509CertImpl.getExtendedKeyUsage(this);
}
 
Example 8
Source File: X509Certificate.java    From openjdk-8-source with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Gets an unmodifiable list of Strings representing the OBJECT
 * IDENTIFIERs of the {@code ExtKeyUsageSyntax} field of the
 * extended key usage extension, (OID = 2.5.29.37).  It indicates
 * one or more purposes for which the certified public key may be
 * used, in addition to or in place of the basic purposes
 * indicated in the key usage extension field.  The ASN.1
 * definition for this is:
 * <pre>
 * ExtKeyUsageSyntax ::= SEQUENCE SIZE (1..MAX) OF KeyPurposeId
 *
 * KeyPurposeId ::= OBJECT IDENTIFIER
 * </pre>
 *
 * Key purposes may be defined by any organization with a
 * need. Object identifiers used to identify key purposes shall be
 * assigned in accordance with IANA or ITU-T Rec. X.660 |
 * ISO/IEC/ITU 9834-1.
 * <p>
 * This method was added to version 1.4 of the Java 2 Platform Standard
 * Edition. In order to maintain backwards compatibility with existing
 * service providers, this method is not {@code abstract}
 * and it provides a default implementation. Subclasses
 * should override this method with a correct implementation.
 *
 * @return the ExtendedKeyUsage extension of this certificate,
 *         as an unmodifiable list of object identifiers represented
 *         as Strings. Returns null if this certificate does not
 *         contain an ExtendedKeyUsage extension.
 * @throws CertificateParsingException if the extension cannot be decoded
 * @since 1.4
 */
public List<String> getExtendedKeyUsage() throws CertificateParsingException {
    return X509CertImpl.getExtendedKeyUsage(this);
}
 
Example 9
Source File: X509Certificate.java    From hottub with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Gets an unmodifiable list of Strings representing the OBJECT
 * IDENTIFIERs of the {@code ExtKeyUsageSyntax} field of the
 * extended key usage extension, (OID = 2.5.29.37).  It indicates
 * one or more purposes for which the certified public key may be
 * used, in addition to or in place of the basic purposes
 * indicated in the key usage extension field.  The ASN.1
 * definition for this is:
 * <pre>
 * ExtKeyUsageSyntax ::= SEQUENCE SIZE (1..MAX) OF KeyPurposeId
 *
 * KeyPurposeId ::= OBJECT IDENTIFIER
 * </pre>
 *
 * Key purposes may be defined by any organization with a
 * need. Object identifiers used to identify key purposes shall be
 * assigned in accordance with IANA or ITU-T Rec. X.660 |
 * ISO/IEC/ITU 9834-1.
 * <p>
 * This method was added to version 1.4 of the Java 2 Platform Standard
 * Edition. In order to maintain backwards compatibility with existing
 * service providers, this method is not {@code abstract}
 * and it provides a default implementation. Subclasses
 * should override this method with a correct implementation.
 *
 * @return the ExtendedKeyUsage extension of this certificate,
 *         as an unmodifiable list of object identifiers represented
 *         as Strings. Returns null if this certificate does not
 *         contain an ExtendedKeyUsage extension.
 * @throws CertificateParsingException if the extension cannot be decoded
 * @since 1.4
 */
public List<String> getExtendedKeyUsage() throws CertificateParsingException {
    return X509CertImpl.getExtendedKeyUsage(this);
}
 
Example 10
Source File: X509Certificate.java    From Java8CN with Apache License 2.0 2 votes vote down vote up
/**
 * Gets an unmodifiable list of Strings representing the OBJECT
 * IDENTIFIERs of the {@code ExtKeyUsageSyntax} field of the
 * extended key usage extension, (OID = 2.5.29.37).  It indicates
 * one or more purposes for which the certified public key may be
 * used, in addition to or in place of the basic purposes
 * indicated in the key usage extension field.  The ASN.1
 * definition for this is:
 * <pre>
 * ExtKeyUsageSyntax ::= SEQUENCE SIZE (1..MAX) OF KeyPurposeId
 *
 * KeyPurposeId ::= OBJECT IDENTIFIER
 * </pre>
 *
 * Key purposes may be defined by any organization with a
 * need. Object identifiers used to identify key purposes shall be
 * assigned in accordance with IANA or ITU-T Rec. X.660 |
 * ISO/IEC/ITU 9834-1.
 * <p>
 * This method was added to version 1.4 of the Java 2 Platform Standard
 * Edition. In order to maintain backwards compatibility with existing
 * service providers, this method is not {@code abstract}
 * and it provides a default implementation. Subclasses
 * should override this method with a correct implementation.
 *
 * @return the ExtendedKeyUsage extension of this certificate,
 *         as an unmodifiable list of object identifiers represented
 *         as Strings. Returns null if this certificate does not
 *         contain an ExtendedKeyUsage extension.
 * @throws CertificateParsingException if the extension cannot be decoded
 * @since 1.4
 */
public List<String> getExtendedKeyUsage() throws CertificateParsingException {
    return X509CertImpl.getExtendedKeyUsage(this);
}
 
Example 11
Source File: X509Certificate.java    From jdk1.8-source-analysis with Apache License 2.0 2 votes vote down vote up
/**
 * Gets an unmodifiable list of Strings representing the OBJECT
 * IDENTIFIERs of the {@code ExtKeyUsageSyntax} field of the
 * extended key usage extension, (OID = 2.5.29.37).  It indicates
 * one or more purposes for which the certified public key may be
 * used, in addition to or in place of the basic purposes
 * indicated in the key usage extension field.  The ASN.1
 * definition for this is:
 * <pre>
 * ExtKeyUsageSyntax ::= SEQUENCE SIZE (1..MAX) OF KeyPurposeId
 *
 * KeyPurposeId ::= OBJECT IDENTIFIER
 * </pre>
 *
 * Key purposes may be defined by any organization with a
 * need. Object identifiers used to identify key purposes shall be
 * assigned in accordance with IANA or ITU-T Rec. X.660 |
 * ISO/IEC/ITU 9834-1.
 * <p>
 * This method was added to version 1.4 of the Java 2 Platform Standard
 * Edition. In order to maintain backwards compatibility with existing
 * service providers, this method is not {@code abstract}
 * and it provides a default implementation. Subclasses
 * should override this method with a correct implementation.
 *
 * @return the ExtendedKeyUsage extension of this certificate,
 *         as an unmodifiable list of object identifiers represented
 *         as Strings. Returns null if this certificate does not
 *         contain an ExtendedKeyUsage extension.
 * @throws CertificateParsingException if the extension cannot be decoded
 * @since 1.4
 */
public List<String> getExtendedKeyUsage() throws CertificateParsingException {
    return X509CertImpl.getExtendedKeyUsage(this);
}
 
Example 12
Source File: X509Certificate.java    From openjdk-jdk9 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Gets an unmodifiable list of Strings representing the OBJECT
 * IDENTIFIERs of the {@code ExtKeyUsageSyntax} field of the
 * extended key usage extension, (OID = 2.5.29.37).  It indicates
 * one or more purposes for which the certified public key may be
 * used, in addition to or in place of the basic purposes
 * indicated in the key usage extension field.  The ASN.1
 * definition for this is:
 * <pre>
 * ExtKeyUsageSyntax ::= SEQUENCE SIZE (1..MAX) OF KeyPurposeId
 *
 * KeyPurposeId ::= OBJECT IDENTIFIER
 * </pre>
 *
 * Key purposes may be defined by any organization with a
 * need. Object identifiers used to identify key purposes shall be
 * assigned in accordance with IANA or ITU-T Rec. X.660 |
 * ISO/IEC/ITU 9834-1.
 * <p>
 * This method was added to version 1.4 of the Java 2 Platform Standard
 * Edition. In order to maintain backwards compatibility with existing
 * service providers, this method is not {@code abstract}
 * and it provides a default implementation. Subclasses
 * should override this method with a correct implementation.
 *
 * @return the ExtendedKeyUsage extension of this certificate,
 *         as an unmodifiable list of object identifiers represented
 *         as Strings. Returns null if this certificate does not
 *         contain an ExtendedKeyUsage extension.
 * @throws CertificateParsingException if the extension cannot be decoded
 * @since 1.4
 */
public List<String> getExtendedKeyUsage() throws CertificateParsingException {
    return X509CertImpl.getExtendedKeyUsage(this);
}
 
Example 13
Source File: X509Certificate.java    From Bytecoder with Apache License 2.0 2 votes vote down vote up
/**
 * Gets an unmodifiable list of Strings representing the OBJECT
 * IDENTIFIERs of the {@code ExtKeyUsageSyntax} field of the
 * extended key usage extension, (OID = 2.5.29.37).  It indicates
 * one or more purposes for which the certified public key may be
 * used, in addition to or in place of the basic purposes
 * indicated in the key usage extension field.  The ASN.1
 * definition for this is:
 * <pre>
 * ExtKeyUsageSyntax ::= SEQUENCE SIZE (1..MAX) OF KeyPurposeId
 *
 * KeyPurposeId ::= OBJECT IDENTIFIER
 * </pre>
 *
 * Key purposes may be defined by any organization with a
 * need. Object identifiers used to identify key purposes shall be
 * assigned in accordance with IANA or ITU-T Rec. X.660 |
 * ISO/IEC/ITU 9834-1.
 * <p>
 * This method was added to version 1.4 of the Java 2 Platform Standard
 * Edition. In order to maintain backwards compatibility with existing
 * service providers, this method is not {@code abstract}
 * and it provides a default implementation. Subclasses
 * should override this method with a correct implementation.
 *
 * @return the ExtendedKeyUsage extension of this certificate,
 *         as an unmodifiable list of object identifiers represented
 *         as Strings. Returns null if this certificate does not
 *         contain an ExtendedKeyUsage extension.
 * @throws CertificateParsingException if the extension cannot be decoded
 * @since 1.4
 */
public List<String> getExtendedKeyUsage() throws CertificateParsingException {
    return X509CertImpl.getExtendedKeyUsage(this);
}
 
Example 14
Source File: X509Certificate.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Gets an unmodifiable list of Strings representing the OBJECT
 * IDENTIFIERs of the {@code ExtKeyUsageSyntax} field of the
 * extended key usage extension, (OID = 2.5.29.37).  It indicates
 * one or more purposes for which the certified public key may be
 * used, in addition to or in place of the basic purposes
 * indicated in the key usage extension field.  The ASN.1
 * definition for this is:
 * <pre>
 * ExtKeyUsageSyntax ::= SEQUENCE SIZE (1..MAX) OF KeyPurposeId
 *
 * KeyPurposeId ::= OBJECT IDENTIFIER
 * </pre>
 *
 * Key purposes may be defined by any organization with a
 * need. Object identifiers used to identify key purposes shall be
 * assigned in accordance with IANA or ITU-T Rec. X.660 |
 * ISO/IEC/ITU 9834-1.
 * <p>
 * This method was added to version 1.4 of the Java 2 Platform Standard
 * Edition. In order to maintain backwards compatibility with existing
 * service providers, this method is not {@code abstract}
 * and it provides a default implementation. Subclasses
 * should override this method with a correct implementation.
 *
 * @return the ExtendedKeyUsage extension of this certificate,
 *         as an unmodifiable list of object identifiers represented
 *         as Strings. Returns null if this certificate does not
 *         contain an ExtendedKeyUsage extension.
 * @throws CertificateParsingException if the extension cannot be decoded
 * @since 1.4
 */
public List<String> getExtendedKeyUsage() throws CertificateParsingException {
    return X509CertImpl.getExtendedKeyUsage(this);
}
 
Example 15
Source File: X509Certificate.java    From openjdk-jdk8u with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Gets an unmodifiable list of Strings representing the OBJECT
 * IDENTIFIERs of the {@code ExtKeyUsageSyntax} field of the
 * extended key usage extension, (OID = 2.5.29.37).  It indicates
 * one or more purposes for which the certified public key may be
 * used, in addition to or in place of the basic purposes
 * indicated in the key usage extension field.  The ASN.1
 * definition for this is:
 * <pre>
 * ExtKeyUsageSyntax ::= SEQUENCE SIZE (1..MAX) OF KeyPurposeId
 *
 * KeyPurposeId ::= OBJECT IDENTIFIER
 * </pre>
 *
 * Key purposes may be defined by any organization with a
 * need. Object identifiers used to identify key purposes shall be
 * assigned in accordance with IANA or ITU-T Rec. X.660 |
 * ISO/IEC/ITU 9834-1.
 * <p>
 * This method was added to version 1.4 of the Java 2 Platform Standard
 * Edition. In order to maintain backwards compatibility with existing
 * service providers, this method is not {@code abstract}
 * and it provides a default implementation. Subclasses
 * should override this method with a correct implementation.
 *
 * @return the ExtendedKeyUsage extension of this certificate,
 *         as an unmodifiable list of object identifiers represented
 *         as Strings. Returns null if this certificate does not
 *         contain an ExtendedKeyUsage extension.
 * @throws CertificateParsingException if the extension cannot be decoded
 * @since 1.4
 */
public List<String> getExtendedKeyUsage() throws CertificateParsingException {
    return X509CertImpl.getExtendedKeyUsage(this);
}
 
Example 16
Source File: X509Certificate.java    From JDKSourceCode1.8 with MIT License 2 votes vote down vote up
/**
 * Gets an unmodifiable list of Strings representing the OBJECT
 * IDENTIFIERs of the {@code ExtKeyUsageSyntax} field of the
 * extended key usage extension, (OID = 2.5.29.37).  It indicates
 * one or more purposes for which the certified public key may be
 * used, in addition to or in place of the basic purposes
 * indicated in the key usage extension field.  The ASN.1
 * definition for this is:
 * <pre>
 * ExtKeyUsageSyntax ::= SEQUENCE SIZE (1..MAX) OF KeyPurposeId
 *
 * KeyPurposeId ::= OBJECT IDENTIFIER
 * </pre>
 *
 * Key purposes may be defined by any organization with a
 * need. Object identifiers used to identify key purposes shall be
 * assigned in accordance with IANA or ITU-T Rec. X.660 |
 * ISO/IEC/ITU 9834-1.
 * <p>
 * This method was added to version 1.4 of the Java 2 Platform Standard
 * Edition. In order to maintain backwards compatibility with existing
 * service providers, this method is not {@code abstract}
 * and it provides a default implementation. Subclasses
 * should override this method with a correct implementation.
 *
 * @return the ExtendedKeyUsage extension of this certificate,
 *         as an unmodifiable list of object identifiers represented
 *         as Strings. Returns null if this certificate does not
 *         contain an ExtendedKeyUsage extension.
 * @throws CertificateParsingException if the extension cannot be decoded
 * @since 1.4
 */
public List<String> getExtendedKeyUsage() throws CertificateParsingException {
    return X509CertImpl.getExtendedKeyUsage(this);
}
 
Example 17
Source File: X509Certificate.java    From jdk8u60 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Gets an unmodifiable list of Strings representing the OBJECT
 * IDENTIFIERs of the {@code ExtKeyUsageSyntax} field of the
 * extended key usage extension, (OID = 2.5.29.37).  It indicates
 * one or more purposes for which the certified public key may be
 * used, in addition to or in place of the basic purposes
 * indicated in the key usage extension field.  The ASN.1
 * definition for this is:
 * <pre>
 * ExtKeyUsageSyntax ::= SEQUENCE SIZE (1..MAX) OF KeyPurposeId
 *
 * KeyPurposeId ::= OBJECT IDENTIFIER
 * </pre>
 *
 * Key purposes may be defined by any organization with a
 * need. Object identifiers used to identify key purposes shall be
 * assigned in accordance with IANA or ITU-T Rec. X.660 |
 * ISO/IEC/ITU 9834-1.
 * <p>
 * This method was added to version 1.4 of the Java 2 Platform Standard
 * Edition. In order to maintain backwards compatibility with existing
 * service providers, this method is not {@code abstract}
 * and it provides a default implementation. Subclasses
 * should override this method with a correct implementation.
 *
 * @return the ExtendedKeyUsage extension of this certificate,
 *         as an unmodifiable list of object identifiers represented
 *         as Strings. Returns null if this certificate does not
 *         contain an ExtendedKeyUsage extension.
 * @throws CertificateParsingException if the extension cannot be decoded
 * @since 1.4
 */
public List<String> getExtendedKeyUsage() throws CertificateParsingException {
    return X509CertImpl.getExtendedKeyUsage(this);
}
 
Example 18
Source File: X509Certificate.java    From TencentKona-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Gets an unmodifiable list of Strings representing the OBJECT
 * IDENTIFIERs of the {@code ExtKeyUsageSyntax} field of the
 * extended key usage extension, (OID = 2.5.29.37).  It indicates
 * one or more purposes for which the certified public key may be
 * used, in addition to or in place of the basic purposes
 * indicated in the key usage extension field.  The ASN.1
 * definition for this is:
 * <pre>
 * ExtKeyUsageSyntax ::= SEQUENCE SIZE (1..MAX) OF KeyPurposeId
 *
 * KeyPurposeId ::= OBJECT IDENTIFIER
 * </pre>
 *
 * Key purposes may be defined by any organization with a
 * need. Object identifiers used to identify key purposes shall be
 * assigned in accordance with IANA or ITU-T Rec. X.660 |
 * ISO/IEC/ITU 9834-1.
 * <p>
 * This method was added to version 1.4 of the Java 2 Platform Standard
 * Edition. In order to maintain backwards compatibility with existing
 * service providers, this method is not {@code abstract}
 * and it provides a default implementation. Subclasses
 * should override this method with a correct implementation.
 *
 * @return the ExtendedKeyUsage extension of this certificate,
 *         as an unmodifiable list of object identifiers represented
 *         as Strings. Returns null if this certificate does not
 *         contain an ExtendedKeyUsage extension.
 * @throws CertificateParsingException if the extension cannot be decoded
 * @since 1.4
 */
public List<String> getExtendedKeyUsage() throws CertificateParsingException {
    return X509CertImpl.getExtendedKeyUsage(this);
}
 
Example 19
Source File: X509Certificate.java    From dragonwell8_jdk with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Gets an unmodifiable list of Strings representing the OBJECT
 * IDENTIFIERs of the {@code ExtKeyUsageSyntax} field of the
 * extended key usage extension, (OID = 2.5.29.37).  It indicates
 * one or more purposes for which the certified public key may be
 * used, in addition to or in place of the basic purposes
 * indicated in the key usage extension field.  The ASN.1
 * definition for this is:
 * <pre>
 * ExtKeyUsageSyntax ::= SEQUENCE SIZE (1..MAX) OF KeyPurposeId
 *
 * KeyPurposeId ::= OBJECT IDENTIFIER
 * </pre>
 *
 * Key purposes may be defined by any organization with a
 * need. Object identifiers used to identify key purposes shall be
 * assigned in accordance with IANA or ITU-T Rec. X.660 |
 * ISO/IEC/ITU 9834-1.
 * <p>
 * This method was added to version 1.4 of the Java 2 Platform Standard
 * Edition. In order to maintain backwards compatibility with existing
 * service providers, this method is not {@code abstract}
 * and it provides a default implementation. Subclasses
 * should override this method with a correct implementation.
 *
 * @return the ExtendedKeyUsage extension of this certificate,
 *         as an unmodifiable list of object identifiers represented
 *         as Strings. Returns null if this certificate does not
 *         contain an ExtendedKeyUsage extension.
 * @throws CertificateParsingException if the extension cannot be decoded
 * @since 1.4
 */
public List<String> getExtendedKeyUsage() throws CertificateParsingException {
    return X509CertImpl.getExtendedKeyUsage(this);
}