KeyStore.
This object holds the configurable properties of a key store and uses them to
create and load a KeyStore instance.
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private String | |
| private String | |
| private String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public KeyStore | |
| public String | Returns: a String containing a URL for the resourceGets the location of the key store resource. |
| public String | Returns: password string; theSSL#DEFAULT_KEYSTORE_PASSWORD is
returned if no password has been configuredGets the password to use to access the key store. |
| public String | Returns: provider name ornull if no provider has been configuredGets the JCA key store provider name. |
| public String | Returns: a key store type name (e.g.JKS); the
SSL#DEFAULT_KEYSTORE_TYPE is returned if no type has been
configuredGets the type of key store to load. |
| private KeyStore | |
| public void | setLocation(String
a String containing a URL for the resource; if the URL string
isn't prefixed by a scheme, the path is assumed to be
relative to the root of the classpath. location)Sets the location of the key store resource. |
| public void | |
| public void | setProvider(String
name of the JCA provider to utilize in creating the key store provider)Sets the JCA key store provider name. |
| public void | setType(String
a key store type name (e.g. type)JKS, PKCS12); the
type specified must be supported by the provider specified by
setProvider(String) or by the platform's default
provider if no provider is specifiedSets the type of key store to load. |
| location | back to summary |
|---|---|
| private String location | |
| password | back to summary |
|---|---|
| private String password | |
| provider | back to summary |
|---|---|
| private String provider | |
| type | back to summary |
|---|---|
| private String type | |
| KeyStoreFactoryBean | back to summary |
|---|---|
| public KeyStoreFactoryBean() | |
| createKeyStore | back to summary |
|---|---|
| public KeyStore createKeyStore() throws NoSuchProviderException, NoSuchAlgorithmException, KeyStoreException Creates a new
| |
| getLocation | back to summary |
|---|---|
| public String getLocation() Gets the location of the key store resource.
| |
| getPassword | back to summary |
|---|---|
| public String getPassword() Gets the password to use to access the key store.
| |
| getProvider | back to summary |
|---|---|
| public String getProvider() Gets the JCA key store provider name.
| |
| getType | back to summary |
|---|---|
| public String getType() Gets the type of key store to load.
| |
| newKeyStore | back to summary |
|---|---|
| private KeyStore newKeyStore() throws NoSuchAlgorithmException, NoSuchProviderException, KeyStoreException Invokes the appropriate JCE factory method to obtain a new | |
| setLocation | back to summary |
|---|---|
| public void setLocation(String location) Sets the location of the key store resource.
| |
| setPassword | back to summary |
|---|---|
| public void setPassword(String password) Sets the password to use to access the keystore.
| |
| setProvider | back to summary |
|---|---|
| public void setProvider(String provider) Sets the JCA key store provider name.
| |
| setType | back to summary |
|---|---|
| public void setType(String type) Sets the type of key store to load.
| |