IT. Expert System.

Android Reference

SslCertificate


android.net.http

Class SslCertificate



  • public class SslCertificate
    extends Object
    SSL certificate info (certificate details) class
    • Constructor Detail

      • SslCertificate

        @Deprecated
        public SslCertificate(String issuedTo,
                                 String issuedBy,
                                 String validNotBefore,
                                 String validNotAfter)
        Creates a new SSL certificate object
        Parameters:
        issuedTo - The entity this certificate is issued to
        issuedBy - The entity that issued this certificate
        validNotBefore - The not-before date from the certificate validity period in ISO 8601 format
        validNotAfter - The not-after date from the certificate validity period in ISO 8601 format
      • SslCertificate

        @Deprecated
        public SslCertificate(String issuedTo,
                                 String issuedBy,
                                 Date validNotBefore,
                                 Date validNotAfter)
        Creates a new SSL certificate object
        Parameters:
        issuedTo - The entity this certificate is issued to
        issuedBy - The entity that issued this certificate
        validNotBefore - The not-before date from the certificate validity period
        validNotAfter - The not-after date from the certificate validity period
      • SslCertificate

        public SslCertificate(X509Certificate certificate)
        Creates a new SSL certificate object from an X509 certificate
        Parameters:
        certificate - X509 certificate
    • Method Detail

      • saveState

        public static Bundle saveState(SslCertificate certificate)
        Saves the certificate state to a bundle
        Parameters:
        certificate - The SSL certificate to store
        Returns:
        A bundle with the certificate stored in it or null if fails
      • restoreState

        public static SslCertificate restoreState(Bundle bundle)
        Restores the certificate stored in the bundle
        Parameters:
        bundle - The bundle with the certificate state stored in it
        Returns:
        The SSL certificate stored in the bundle or null if fails
      • getValidNotBeforeDate

        public Date getValidNotBeforeDate()
        Returns:
        Not-before date from the certificate validity period or "" if none has been set
      • getValidNotBefore

        @Deprecated
        public String getValidNotBefore()
        Deprecated. Use getValidNotBeforeDate()
        Returns:
        Not-before date from the certificate validity period in ISO 8601 format or "" if none has been set
      • getValidNotAfterDate

        public Date getValidNotAfterDate()
        Returns:
        Not-after date from the certificate validity period or "" if none has been set
      • getValidNotAfter

        @Deprecated
        public String getValidNotAfter()
        Deprecated. Use getValidNotAfterDate()
        Returns:
        Not-after date from the certificate validity period in ISO 8601 format or "" if none has been set
      • getIssuedTo

        public SslCertificate.DName getIssuedTo()
        Returns:
        Issued-to distinguished name or null if none has been set
      • getIssuedBy

        public SslCertificate.DName getIssuedBy()
        Returns:
        Issued-by distinguished name or null if none has been set
      • toString

        public String toString()
        Description copied from class: Object
        Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
           getClass().getName() + '@' + Integer.toHexString(hashCode())

        See Writing a useful toString method if you intend implementing your own toString method.

        Overrides:
        toString in class Object
        Returns:
        A string representation of this certificate for debugging
      • inflateCertificateView

        public View inflateCertificateView(Context context)
        Inflates the SSL certificate view (helper method).
        Returns:
        The resultant certificate view with issued-to, issued-by, issued-on, expires-on, and possibly other fields set.


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: 33 / 158750168. Delta: 0.04004 с