com.xmlmill.config
Class KeyStoreInfo

java.lang.Object
  |
  +--com.xmlmill.config.KeyStoreInfo

public class KeyStoreInfo
extends java.lang.Object

*** For internal use only ***

A KeystoreINfo instance contains the meta information of a keystore regarding:

  1. file
  2. storepasswd
  3. storetype
  4. service-provider-interface
  5. signaturehandler

Also information regarding each alias (name, password) is stored.

The keystore itself is also stored.


Constructor Summary
KeyStoreInfo()
          Creates a new instance of KeyStoreInfo
 
Method Summary
 java.util.ArrayList dump()
          Returns the font attributes as a list.
 java.lang.String getAliasPasswd(java.lang.String name)
          Returns an alias' password.
 java.lang.String getDefaultAlias()
          Returns the default alias.
 java.security.KeyStore getKeyStore()
          Returns the keystore this KeyStoreInfo represents.
 java.lang.String getProviderName()
          Returns the service provider's name.
 java.lang.String getSignatureHandlerName()
          Returns the keystore this KeyStoreInfo represents.
 java.lang.String toString()
          Returns the font attributes as a String.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KeyStoreInfo

public KeyStoreInfo()
Creates a new instance of KeyStoreInfo
Method Detail

getKeyStore

public final java.security.KeyStore getKeyStore()
Returns the keystore this KeyStoreInfo represents.

Returns:
a KeyStore instance.
Since:
2.60

getSignatureHandlerName

public final java.lang.String getSignatureHandlerName()
Returns the keystore this KeyStoreInfo represents.

Returns:
a String representing the name of the Signature Handler.
Since:
2.60

getAliasPasswd

public final java.lang.String getAliasPasswd(java.lang.String name)
Returns an alias' password.

Parameters:
name - representing an alias name.
Returns:
a String representing the password associated with the passed name.
Since:
2.60

getDefaultAlias

public final java.lang.String getDefaultAlias()
Returns the default alias.

The default alias is the first alias that is retrieved from the keystore.

Returns:
a String representing the password associated with the passed name.
Since:
2.60

getProviderName

public final java.lang.String getProviderName()
Returns the service provider's name.

The name is derived from instantiating the service provider class. This method will always return null before the internal loadKeyStore() method is called.

Returns:
a String representing the name of the provider.
Since:
2.60

toString

public final java.lang.String toString()
Returns the font attributes as a String.

Overrides:
toString in class java.lang.Object
Returns:
string containing all attributes.
Since:
2.60

dump

public final java.util.ArrayList dump()
Returns the font attributes as a list.

Returns:
string containing all attributes.
Since:
2.60