IT. Expert System.

Android Reference

KeyStore.Builder


java.security

Class KeyStore.Builder

  • Enclosing class:
    KeyStore


    public abstract static class KeyStore.Builder
    extends Object
    Builder is used to construct new instances of KeyStore.
    • Constructor Detail

      • KeyStore.Builder

        protected KeyStore.Builder()
        Constructs a new instance of Builder.
    • Method Detail

      • getKeyStore

        public abstract KeyStore getKeyStore()
                                      throws KeyStoreException
        Returns the KeyStore created by this Builder.
        Returns:
        the KeyStore created by this Builder.
        Throws:
        KeyStoreException - if an error occurred during construction.
      • newInstance

        public static KeyStore.Builder newInstance(KeyStore keyStore,
                                   KeyStore.ProtectionParameter protectionParameter)
        Returns a new Builder that holds the given KeyStore and the given ProtectionParameter.
        Parameters:
        keyStore - the KeyStore to be held.
        protectionParameter - the ProtectionParameter to be held.
        Returns:
        a new instance of Builder that holds the specified KeyStore and the specified ProtectionParameter.
        Throws:
        NullPointerException - if keyStore or protectionParameter is null.
        IllegalArgumentException - if the given KeyStore is not initialized.
      • newInstance

        public static KeyStore.Builder newInstance(String type,
                                   Provider provider,
                                   File file,
                                   KeyStore.ProtectionParameter protectionParameter)
        Returns a new Builder that creates a new KeyStore based on the provided arguments.

        If provider is null, all installed providers are searched, otherwise the key store from the specified provider is used.

        Parameters:
        type - the type of the KeyStore to be constructed.
        provider - the provider of the KeyStore to be constructed, maybe null.
        file - the File that contains the data for the KeyStore.
        protectionParameter - the ProtectionParameter used to protect the stored keys.
        Returns:
        a new Builder that creates a new KeyStore based on the provided arguments.
        Throws:
        NullPointerException - if type, protectionParameter or file is null.
        IllegalArgumentException - protectionParameter not an instance of either PasswordProtection or CallbackHandlerProtection, file is not a file or does not exist at all.
      • newInstance

        public static KeyStore.Builder newInstance(String type,
                                   Provider provider,
                                   KeyStore.ProtectionParameter protectionParameter)
        Returns a new Builder that creates a new KeyStore based on the provided arguments.

        If provider is null, all installed providers are searched, otherwise the key store from the specified provider is used.

        Parameters:
        type - the type of the KeyStore to be constructed.
        provider - the provider of the KeyStore to be constructed, maybe null.
        protectionParameter - the ProtectionParameter used to protect the stored keys.
        Returns:
        a new Builder that creates a new KeyStore based on the provided arguments.
        Throws:
        NullPointerException - if type or protectionParameter is null.
        IllegalArgumentException - protectionParameter not an instance of either PasswordProtection or CallbackHandlerProtection, file is not a file or does not exist at all.


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: 698 / 158735676. Delta: 0.03477 с