|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.vt.middleware.crypt.CryptProvider
public final class CryptProvider
CryptProvider contains methods for finding cryptographic
objects using a set of providers.
| Field Summary | |
|---|---|
static int |
RANDOM_BYTE_ARRAY_SIZE
Default size of random byte array. |
| Method Summary | |
|---|---|
static void |
addProvider(Provider provider,
String name)
This will add an additional security provider. |
static CertificateFactory |
getCertificateFactory(String type)
This creates a CertificateFactory using the supplied type
name. |
static Cipher |
getCipher(String algorithm,
String mode,
String padding)
This finds a Cipher using the known providers and the
supplied parameters. |
static KeyFactory |
getKeyFactory(String algorithm)
This finds a KeyFactory using the known providers and the
supplied algorithm parameter. |
static KeyGenerator |
getKeyGenerator(String algorithm)
This finds a KeyGenerator using the known providers and the
supplied algorithm parameter. |
static KeyPairGenerator |
getKeyPairGenerator(String algorithm)
This finds a KeyPairGenerator using the known providers and
the supplied algorithm parameter. |
static KeyStore |
getKeyStore()
This creates a KeyStore using the default keystore type. |
static KeyStore |
getKeyStore(String type)
This creates a KeyStore using the supplied type name. |
static MessageDigest |
getMessageDigest(String algorithm)
This creates a MessageDigest using the supplied algorithm
name. |
static SecretKeyFactory |
getSecretKeyFactory(String algorithm)
This finds a SecretKeyFactory using the known providers and
the supplied algorithm parameter. |
static Signature |
getSignature(String digestAlgorithm,
String algorithm,
String padding)
This finds a Signature using the known providers and the
supplied parameters. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int RANDOM_BYTE_ARRAY_SIZE
| Method Detail |
|---|
public static void addProvider(Provider provider,
String name)
This will add an additional security provider.
provider - Providername - String
public static Cipher getCipher(String algorithm,
String mode,
String padding)
throws CryptException
This finds a Cipher using the known providers and the
supplied parameters.
algorithm - String namemode - String namepadding - String name
Cipher
CryptException - if the algorithm is not available from any
provider or if the provider is not available in the environment
public static SecretKeyFactory getSecretKeyFactory(String algorithm)
throws CryptException
This finds a SecretKeyFactory using the known providers and
the supplied algorithm parameter.
algorithm - String name
SecretKeyFactory
CryptException - if the algorithm is not available from any
provider or if the provider is not available in the environment
public static KeyFactory getKeyFactory(String algorithm)
throws CryptException
This finds a KeyFactory using the known providers and the
supplied algorithm parameter.
algorithm - String name
KeyFactory
CryptException - if the algorithm is not available from any
provider or if the provider is not available in the environment
public static KeyGenerator getKeyGenerator(String algorithm)
throws CryptException
This finds a KeyGenerator using the known providers and the
supplied algorithm parameter.
algorithm - String name
KeyGenerator
CryptException - if the algorithm is not available from any
provider or if the provider is not available in the environment
public static KeyPairGenerator getKeyPairGenerator(String algorithm)
throws CryptException
This finds a KeyPairGenerator using the known providers and
the supplied algorithm parameter.
algorithm - String name
KeyPairGenerator
CryptException - if the algorithm is not available from any
provider or if the provider is not available in the environment
public static Signature getSignature(String digestAlgorithm,
String algorithm,
String padding)
throws CryptException
This finds a Signature using the known providers and the
supplied parameters.
digestAlgorithm - String namealgorithm - String namepadding - String name
Signature
CryptException - if the algorithm is not available from any
provider or if the provider is not available in the environment
public static MessageDigest getMessageDigest(String algorithm)
throws CryptException
This creates a MessageDigest using the supplied algorithm
name.
algorithm - String name
MessageDigest
CryptException - if the algorithm is not available from any
provider or the provider is not available in the environment
public static KeyStore getKeyStore(String type)
throws CryptException
This creates a KeyStore using the supplied type name.
type - String
KeyStore
CryptException - if the type is not available from any provider or
the provider is not available in the environment
public static KeyStore getKeyStore()
throws CryptException
This creates a KeyStore using the default keystore type.
KeyStore
CryptException - if the default type is not available from any
provider or the provider is not available in the environment
public static CertificateFactory getCertificateFactory(String type)
throws CryptException
This creates a CertificateFactory using the supplied type
name.
type - String
CertificateFactory
CryptException - if the type is not available from any provider or
the provider is not available in the environment
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||