IT. Expert System.

Android Reference

MyKeyStoreSpi


org.apache.harmony.security.tests.support

Class MyKeyStoreSpi



  • public class MyKeyStoreSpi
    extends KeyStoreSpi
    Additional class for KeyStoreSpi and KeyStore verification
    • Constructor Detail

      • MyKeyStoreSpi

        public MyKeyStoreSpi()
    • Method Detail

      • engineGetCertificateChain

        public Certificate[] engineGetCertificateChain(String alias)
        Description copied from class: KeyStoreSpi
        Returns the certificate chain for the entry with the given alias.
        Specified by:
        engineGetCertificateChain in class KeyStoreSpi
        Parameters:
        alias - the alias for the entry
        Returns:
        the certificate chain for the entry with the given alias, or null if the specified alias is not bound to an entry.
      • engineGetCertificate

        public Certificate engineGetCertificate(String alias)
        Description copied from class: KeyStoreSpi
        Returns the trusted certificate for the entry with the given alias.
        Specified by:
        engineGetCertificate in class KeyStoreSpi
        Parameters:
        alias - the alias for the entry.
        Returns:
        the trusted certificate for the entry with the given alias, or null if the specified alias is not bound to an entry.
      • engineGetCreationDate

        public Date engineGetCreationDate(String alias)
        Description copied from class: KeyStoreSpi
        Returns the creation date of the entry with the given alias.
        Specified by:
        engineGetCreationDate in class KeyStoreSpi
        Parameters:
        alias - the alias for the entry.
        Returns:
        the creation date, or null if the specified alias is not bound to an entry.
      • engineSetKeyEntry

        public void engineSetKeyEntry(String alias,
                             Key key,
                             char[] password,
                             Certificate[] chain)
                               throws KeyStoreException
        Description copied from class: KeyStoreSpi
        Associates the given alias with the key, password and certificate chain.

        If the specified alias already exists, it will be reassigned.

        Specified by:
        engineSetKeyEntry in class KeyStoreSpi
        Parameters:
        alias - the alias for the key.
        key - the key.
        password - the password.
        chain - the certificate chain.
        Throws:
        KeyStoreException - if the specified key can not be protected, or if this operation fails for another reason.
      • engineSetKeyEntry

        public void engineSetKeyEntry(String alias,
                             byte[] key,
                             Certificate[] chain)
                               throws KeyStoreException
        Description copied from class: KeyStoreSpi
        Associates the given alias with a key and a certificate chain.

        If the specified alias already exists, it will be reassigned.

        Specified by:
        engineSetKeyEntry in class KeyStoreSpi
        Parameters:
        alias - the alias for the key.
        key - the key in an encoded format.
        chain - the certificate chain.
        Throws:
        KeyStoreException - if this operation fails.
      • engineSetCertificateEntry

        public void engineSetCertificateEntry(String alias,
                                     Certificate cert)
                                       throws KeyStoreException
        Description copied from class: KeyStoreSpi
        Associates the given alias with a certificate.

        If the specified alias already exists, it will be reassigned.

        Specified by:
        engineSetCertificateEntry in class KeyStoreSpi
        Parameters:
        alias - the alias for the certificate.
        cert - the certificate.
        Throws:
        KeyStoreException - if an existing alias is not associated to an entry containing a trusted certificate, or this method fails for any other reason.
      • engineAliases

        public Enumeration<String> engineAliases()
        Description copied from class: KeyStoreSpi
        Returns an Enumeration over all alias names stored in this KeyStoreSpi.
        Specified by:
        engineAliases in class KeyStoreSpi
        Returns:
        an Enumeration over all alias names stored in this KeyStoreSpi.
      • engineContainsAlias

        public boolean engineContainsAlias(String alias)
        Description copied from class: KeyStoreSpi
        Indicates whether the given alias is present in this KeyStoreSpi.
        Specified by:
        engineContainsAlias in class KeyStoreSpi
        Parameters:
        alias - the alias of an entry.
        Returns:
        true if the alias exists, false otherwise.
      • engineSize

        public int engineSize()
        Description copied from class: KeyStoreSpi
        Returns the number of entries stored in this KeyStoreSpi.
        Specified by:
        engineSize in class KeyStoreSpi
        Returns:
        the number of entries stored in this KeyStoreSpi.
      • engineGetCertificateAlias

        public String engineGetCertificateAlias(Certificate cert)
        Description copied from class: KeyStoreSpi
        Returns the alias associated with the first entry whose certificate matches the specified certificate.
        Specified by:
        engineGetCertificateAlias in class KeyStoreSpi
        Parameters:
        cert - the certificate to find the associated entry's alias for.
        Returns:
        the alias or null if no entry with the specified certificate can be found.


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: 160 / 158693902. Delta: 0.04520 с