IT. Expert System.

Android Reference

KeyStore.PrivateKeyEntry


java.security

Class KeyStore.PrivateKeyEntry

  • All Implemented Interfaces:
    KeyStore.Entry
    Enclosing class:
    KeyStore


    public static final class KeyStore.PrivateKeyEntry
    extends Object
    implements KeyStore.Entry
    PrivateKeyEntry represents a KeyStore entry that holds a private key.
    • Constructor Detail

      • KeyStore.PrivateKeyEntry

        public KeyStore.PrivateKeyEntry(PrivateKey privateKey,
                                Certificate[] chain)
        Constructs a new instance of PrivateKeyEntry with the given PrivateKey and the provided certificate chain.
        Parameters:
        privateKey - the private key.
        chain - the ordered certificate chain with the certificate corresponding to the private key at index 0.
        Throws:
        NullPointerException - if privateKey or chain is null.
        IllegalArgumentException - if chain.length == 0, the algorithm of the private key does not match the algorithm of the public key of the first certificate or the certificates are not all of the same type.
    • Method Detail

      • getPrivateKey

        public PrivateKey getPrivateKey()
        Returns the private key.
        Returns:
        the private key.
      • getCertificateChain

        public Certificate[] getCertificateChain()
        Returns the certificate chain.
        Returns:
        the certificate chain.
      • getCertificate

        public Certificate getCertificate()
        Returns the certificate corresponding to the private key.
        Returns:
        the certificate corresponding to the private key.
      • toString

        public String toString()
        Returns a string containing a concise, human-readable description of this PrivateKeyEntry.
        Overrides:
        toString in class Object
        Returns:
        a printable representation for this PrivateKeyEntry.


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: 1459 / . Delta: 0.04151 с