Class MechanismConfiguration
- java.lang.Object
-
- com.portwise.core.controller.authentication.MechanismConfiguration
-
- All Implemented Interfaces:
com.portwise.core.storage.Containable
,com.portwise.core.storage.SecurityEntityInterface
,java.io.Serializable
public class MechanismConfiguration extends java.lang.Object implements com.portwise.core.storage.Containable, com.portwise.core.storage.SecurityEntityInterface
This persistent class holds key and value pairs for an authentication method.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MechanismConfiguration()
Constructs a new emptyMechanismConfiguration
instance.MechanismConfiguration(java.lang.String key, java.lang.String value)
Constructs a newMechanismConfiguration
instance with the specified key and value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
beforeStore()
java.lang.String[]
getEncryptedFieldNames(int encryptionMethod)
java.lang.String
getKey()
Returns the key.com.portwise.core.storage.SecurityEntityException
getSecurityEntityException()
java.lang.String
getValue()
Returns the value.void
initialized()
void
setKey(java.lang.String key)
Sets the key.void
setSecurityEntityException(com.portwise.core.storage.SecurityEntityException e)
void
setValue(java.lang.String value)
Sets the value.java.lang.String
toString()
-
-
-
Constructor Detail
-
MechanismConfiguration
public MechanismConfiguration()
Constructs a new emptyMechanismConfiguration
instance.
-
MechanismConfiguration
public MechanismConfiguration(java.lang.String key, java.lang.String value)
Constructs a newMechanismConfiguration
instance with the specified key and value.- Parameters:
key
- The key.value
- The value.
-
-
Method Detail
-
getKey
public java.lang.String getKey()
Returns the key.- Returns:
- The key.
-
setKey
public void setKey(java.lang.String key)
Sets the key.- Parameters:
key
- The key.
-
getValue
public java.lang.String getValue()
Returns the value.- Returns:
- The value.
-
setValue
public void setValue(java.lang.String value)
Sets the value.- Parameters:
value
- The value.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
- See Also:
Object.toString()
-
getEncryptedFieldNames
public java.lang.String[] getEncryptedFieldNames(int encryptionMethod)
- Specified by:
getEncryptedFieldNames
in interfacecom.portwise.core.storage.SecurityEntityInterface
- See Also:
SecurityEntityInterface.getEncryptedFieldNames(int)
-
initialized
public void initialized()
- Specified by:
initialized
in interfacecom.portwise.core.storage.Containable
- See Also:
Containable.initialized()
-
getSecurityEntityException
public com.portwise.core.storage.SecurityEntityException getSecurityEntityException()
- Specified by:
getSecurityEntityException
in interfacecom.portwise.core.storage.SecurityEntityInterface
-
setSecurityEntityException
public void setSecurityEntityException(com.portwise.core.storage.SecurityEntityException e)
- Specified by:
setSecurityEntityException
in interfacecom.portwise.core.storage.SecurityEntityInterface
-
beforeStore
public void beforeStore()
- Specified by:
beforeStore
in interfacecom.portwise.core.storage.Containable
-
-