Package org.jpos.security
Class SecureVariantKey
- java.lang.Object
-
- org.jpos.security.SecureKey
-
- org.jpos.security.SecureVariantKey
-
- All Implemented Interfaces:
java.io.Serializable
,Loggeable
- Direct Known Subclasses:
SecureDESKey
,SecurePrivateKey
public abstract class SecureVariantKey extends SecureKey implements java.io.Serializable
TheSecureVariantKey
class wraps any keys that are secured by the security module with variant methods.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SecureVariantKey()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract byte
getVariant()
Gets the key variant method used to protect this key.void
setVariant(byte variant)
Sets key protection variant metchod appiled to this key by the security module.-
Methods inherited from class org.jpos.security.SecureKey
getKeyBytes, getKeyCheckValue, getKeyLength, getKeyName, getKeyType, getScheme, setKeyBytes, setKeyCheckValue, setKeyLength, setKeyName, setKeyType, setScheme
-
-
-
-
Field Detail
-
variant
protected java.lang.Byte variant
Indicates key protection variant metchod appiled to this key by a security module.
-
-
Constructor Detail
-
SecureVariantKey
public SecureVariantKey()
-
-
Method Detail
-
setVariant
public void setVariant(byte variant)
Sets key protection variant metchod appiled to this key by the security module.- Parameters:
variant
- key variant method used to protect this key.
-
getVariant
public abstract byte getVariant()
Gets the key variant method used to protect this key.- Returns:
- key variant method used to protect this key.
-
-