|
HDIV API 2.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hdiv.cipher.KeyFactory
public class KeyFactory
Key Factory generator.
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_ALGORITHM
Name of the default PRNG algorithm |
static java.lang.String |
DEFAULT_PROVIDER
Name of the default provider |
| Constructor Summary | |
|---|---|
KeyFactory()
|
|
| Method Summary | |
|---|---|
Key |
generateKey()
This method is called whenever a key needs to be generated. |
Key |
generateKeyWithDefaultValues()
This method is called whenever a key needs to be generated with Pseudo Random Number Generator algorithm and provider default values. |
java.lang.String |
getAlgorithm()
|
int |
getKeySize()
|
java.lang.String |
getPrngAlgorithm()
|
java.lang.String |
getProvider()
|
void |
setAlgorithm(java.lang.String algorithm)
|
void |
setKeySize(int keySize)
|
void |
setPrngAlgorithm(java.lang.String prngAlgorithm)
|
void |
setProvider(java.lang.String provider)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_ALGORITHM
public static final java.lang.String DEFAULT_PROVIDER
| Constructor Detail |
|---|
public KeyFactory()
| Method Detail |
|---|
public Key generateKeyWithDefaultValues()
generateKeyWithDefaultValues in interface IKeyFactorypublic Key generateKey()
generateKey in interface IKeyFactorypublic java.lang.String getAlgorithm()
public void setAlgorithm(java.lang.String algorithm)
algorithm - The algorithm to set for the Key Generator.public int getKeySize()
public void setKeySize(int keySize)
public java.lang.String getProvider()
public void setProvider(java.lang.String provider)
provider - The provider to set.public java.lang.String getPrngAlgorithm()
public void setPrngAlgorithm(java.lang.String prngAlgorithm)
prngAlgorithm - The prngAlgorithm to set.
|
HDIV 2.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||