java.lang.Object | |
↳ | java.security.KeyStore.Builder |
Builder
is used to construct new instances of
KeyStore
.
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Constructs a new instance of
Builder
.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Returns the
KeyStore
created by this
Builder
.
|
||||||||||
|
Returns the
ProtectionParameter
to be used when a
Entry
with the specified alias is requested.
|
||||||||||
|
Returns a new
Builder
that holds the given
KeyStore
and the given
ProtectionParameter
.
|
||||||||||
|
Returns a new
Builder
that creates a new
KeyStore
based on the provided arguments.
|
||||||||||
|
Returns a new
Builder
that creates a new
KeyStore
based on the provided arguments.
|
[Expand]
Inherited Methods
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Returns the
KeyStore
created by this
Builder
.
KeyStore
created by this
Builder
.
KeyStoreException | if an error occurred during construction. |
---|
Returns the
ProtectionParameter
to be used when a
Entry
with the specified alias is requested. Before this method is
invoked,
getKeyStore()
must be called.
alias | the alias for the entry. |
---|
ProtectionParameter
to be used when a
Entry
with the specified alias is requested.
KeyStoreException | if an error occurred during the lookup for the protection parameter. |
---|---|
IllegalStateException |
if
getKeyStore()
is not called prior the
invocation of this method.
|
NullPointerException |
if
alias
is
null
.
|
Returns a new
Builder
that holds the given
KeyStore
and the given
ProtectionParameter
.
keyStore |
the
KeyStore
to be held.
|
---|---|
protectionParameter |
the
ProtectionParameter
to be held.
|
Builder
that holds the specified
KeyStore
and the specified
ProtectionParameter
.
NullPointerException |
if
keyStore
or
protectionParameter
is
null
.
|
---|---|
IllegalArgumentException |
if the given
KeyStore
is not initialized.
|
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.
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.
|
Builder
that creates a new
KeyStore
based on the provided arguments.
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.
|
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.
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.
|
Builder
that creates a new
KeyStore
based on the provided arguments.
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.
|