public class EncryptionAlgorithm
extends java.lang.Object
Its only purpose is as a container for information required by the
SecurityService
object
Constructor and Description |
---|
EncryptionAlgorithm() |
EncryptionAlgorithm(java.lang.String alg) |
EncryptionAlgorithm(java.lang.String s,
int length)
Constructor.
|
EncryptionAlgorithm(java.lang.String s,
java.lang.String length)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAlgorithm()
Return the algorithm.
|
java.lang.Integer |
getKeyLength()
return the key length.
|
void |
setAlgorithm(java.lang.String s)
Set the algorithm.
|
void |
setKeyLength(java.lang.Integer i)
Set the keylength.
|
java.lang.String |
toString() |
public EncryptionAlgorithm()
Object()
public EncryptionAlgorithm(java.lang.String alg)
public EncryptionAlgorithm(java.lang.String s, int length)
s
- the algorithmlength
- The length of the key to use.setAlgorithm(String)
,
setKeyLength(Integer)
public EncryptionAlgorithm(java.lang.String s, java.lang.String length)
s
- the algorithmlength
- The length of the key to use.setAlgorithm(String)
,
setKeyLength(Integer)
public void setAlgorithm(java.lang.String s)
s
- The encryption algorithm to use, this is provider specific e.g
"DESede/CBC/PKCS5Padding", (3Des, cipher block chain mode, PKCS5
style paddingpublic void setKeyLength(java.lang.Integer i)
i
- the keylength.public java.lang.String getAlgorithm()
public java.lang.Integer getKeyLength()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()