IT. Expert System.

Android Reference

X509Certificate


javax.security.cert

Class X509Certificate



  • public abstract class X509Certificate
    extends Certificate
    Abstract base class for X.509 certificates.

    This represents a standard way for accessing the attributes of X.509 v1 certificates.

    Note: This package is provided only for compatibility reasons. It contains a simplified version of the java.security.cert package that was previously used by JSSE (Java SSL package). All applications that do not have to be compatible with older versions of JSSE (that is before Java SDK 1.5) should only use java.security.cert.

    • Constructor Detail

      • X509Certificate

        public X509Certificate()
        Creates a new X509Certificate.
    • Method Detail

      • getInstance

        public static final X509Certificate getInstance(InputStream inStream)
                                                 throws CertificateException
        Creates a new X509Certificate and initializes it from the specified input stream.
        Parameters:
        inStream - input stream containing data to initialize the certificate.
        Returns:
        the certificate initialized from the specified input stream
        Throws:
        CertificateException - if the certificate cannot be created or initialized.
      • getInstance

        public static final X509Certificate getInstance(byte[] certData)
                                                 throws CertificateException
        Creates a new X509Certificate and initializes it from the specified byte array.
        Parameters:
        certData - byte array containing data to initialize the certificate.
        Returns:
        the certificate initialized from the specified byte array
        Throws:
        CertificateException - if the certificate cannot be created or initialized.
      • getVersion

        public abstract int getVersion()
        Returns the certificates version (version number).

        The version defined is ASN.1:

         Version ::=  INTEGER  {  v1(0), v2(1), v3(2)  }
         
        Returns:
        the version number.
      • getSerialNumber

        public abstract BigInteger getSerialNumber()
        Returns the serialNumber of the certificate.

        The ASN.1 definition of serialNumber:

         CertificateSerialNumber  ::=  INTEGER
         
        Returns:
        the serial number.
      • getIssuerDN

        public abstract Principal getIssuerDN()
        Returns the issuer (issuer distinguished name) as an implementation specific Principal object.

        The ASN.1 definition of issuer:

          issuer      Name
        
          Name ::= CHOICE {
              RDNSequence }
        
            RDNSequence ::= SEQUENCE OF RelativeDistinguishedName
        
            RelativeDistinguishedName ::= SET OF AttributeTypeAndValue
        
            AttributeTypeAndValue ::= SEQUENCE {
              type     AttributeType,
              value    AttributeValue }
        
            AttributeType ::= OBJECT IDENTIFIER
        
            AttributeValue ::= ANY DEFINED BY AttributeType
         
        Returns:
        the issuer as an implementation specific Principal.
      • getSubjectDN

        public abstract Principal getSubjectDN()
        Returns the subject (subject distinguished name) as an implementation specific Principal object.

        The ASN.1 definition of subject:

         subject      Name
        
          Name ::= CHOICE {
              RDNSequence }
        
            RDNSequence ::= SEQUENCE OF RelativeDistinguishedName
        
            RelativeDistinguishedName ::= SET OF AttributeTypeAndValue
        
            AttributeTypeAndValue ::= SEQUENCE {
              type     AttributeType,
              value    AttributeValue }
        
            AttributeType ::= OBJECT IDENTIFIER
        
            AttributeValue ::= ANY DEFINED BY AttributeType
         
        Returns:
        the subject (subject distinguished name).
      • getNotBefore

        public abstract Date getNotBefore()
        Returns the notBefore date from the validity period of the certificate.
        Returns:
        the start of the validity period.
      • getNotAfter

        public abstract Date getNotAfter()
        Returns the notAfter date of the validity period of the certificate.
        Returns:
        the end of the validity period.
      • getSigAlgName

        public abstract String getSigAlgName()
        Returns the name of the algorithm for the certificate signature.
        Returns:
        the signature algorithm name.
      • getSigAlgOID

        public abstract String getSigAlgOID()
        Returns the OID of the signature algorithm from the certificate.
        Returns:
        the OID of the signature algorithm.
      • getSigAlgParams

        public abstract byte[] getSigAlgParams()
        Returns the parameters of the signature algorithm in DER-encoded format.
        Returns:
        the parameters of the signature algorithm, or null if none are used.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 221 / . Delta: 0.01816 с