java.lang.Object
cryptix.pki.KeyIDFactory
- public class KeyIDFactory
- extends java.lang.Object
A class for generating a KeyID
- Version:
- $Revision: 1.2 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
spi
private final KeyIDFactorySpi spi
provider
private final java.security.Provider provider
format
private final java.lang.String format
KeyIDFactory
protected KeyIDFactory(KeyIDFactorySpi builderSpi,
java.security.Provider provider,
java.lang.String format)
- Create a new KeyIDFactory object containing the given
SPI object.
getInstance
public static KeyIDFactory getInstance(java.lang.String format)
throws java.security.NoSuchAlgorithmException
- Returns a KeyIDFactory that implements the given format.
getInstance
public static KeyIDFactory getInstance(java.lang.String format,
java.lang.String provider)
throws java.security.NoSuchAlgorithmException,
java.security.NoSuchProviderException
- Returns a KeyIDFactory from the given provider that
implements the given format.
getInstance
public static KeyIDFactory getInstance(java.lang.String format,
java.security.Provider provider)
throws java.security.NoSuchAlgorithmException,
java.security.NoSuchProviderException
- Returns a KeyIDFactory from the given provider that
implements the given format.
getProvider
public final java.security.Provider getProvider()
- Returns the provider of this object.
getFormat
public final java.lang.String getFormat()
- Returns the name of the format of this object.
generateKeyID
public final KeyID generateKeyID(java.security.Key key)
throws java.security.InvalidKeyException
- Generates a KeyID from a key.