public interface WCKey
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAlgorithm()
Gets the algorithm of this key.
|
byte[] |
getEncryptedValueAsBytes()
Gets the current encrypted value of the key.
|
java.lang.String |
getEncryptedValueAsString()
Gets the current encrypted value of the key.
|
java.lang.String |
getName()
Retrieves the name of this Key.
|
byte[] |
getNewEncryptedValueAsBytes()
Deprecated.
in V7.0.0.3. Use
getEncryptedValueAsBytes() instead. |
java.lang.String |
getNewEncryptedValueAsString()
Deprecated.
in V7.0.0.3. Use
getEncryptedValueAsString() instead. |
byte[] |
getNewValueAsBytes()
Deprecated.
in V7.0.0.3. Use
getValueAsBytes() instead. |
java.lang.String |
getNewValueAsString()
Deprecated.
in V7.0.0.3. Use
getValueAsString() instead. |
java.util.HashMap |
getProperties()
Gets the configuration data that is used during the retrieval of the key.
|
java.lang.String |
getProvider()
Gets the name of the provider.
|
java.lang.String |
getStatus()
Gets the status of this key.
|
byte[] |
getValueAsBytes()
Gets the current value of the key as a byte array.
|
java.lang.String |
getValueAsString()
Gets the current value of the key as a String.
|
java.lang.String |
getVersion()
Gets the version of this key.
|
java.lang.String |
getWorkingDirectory()
Gets the directory, relative to which any key files will be stored.
|
void |
initialize()
This method is called by the WCKeyRegistry class to initialize the key by reading
the current and new key values from their persistent store.
|
void |
setAlgorithm(java.lang.String strAlgorithm)
Sets the algorithm of this key.
|
void |
setName(java.lang.String strKeyName)
Sets the name of the key in the WCKeyRegistry.
|
void |
setProperties(java.util.HashMap hshProperties)
Sets the configuration properties that may be used by this class while retrieving the
value of the key.
|
void |
setProvider(java.lang.String strProviderName)
Sets the name of the provider who implemented this particular key.
|
void |
setStatus(java.lang.String strStatus)
Sets the status of this key.
|
void |
setVersion(java.lang.String strVersion)
Sets the version of this key.
|
void |
setWorkingDirectory(java.lang.String strWorkingDirectory)
Sets the directory relative to which any key files will be stored.
|
void |
updateValue()
Updates the persistent store of the current key value with the new key value.
|
static final java.lang.String COPYRIGHT
void setName(java.lang.String strKeyName)
strKeyName
- The name of the key.void setWorkingDirectory(java.lang.String strWorkingDirectory)
strWorkingDirectory
- The directory relative to which any key files will be stored.void setStatus(java.lang.String strStatus)
strStatus
- The status of the key: "current" or "new"void setVersion(java.lang.String strVersion)
strVersion
- The version of the key.void setAlgorithm(java.lang.String strAlgorithm)
strAlgorithm
- The algorithm of the key.java.lang.String getName()
java.lang.String getStatus()
java.lang.String getVersion()
java.lang.String getAlgorithm()
void setProvider(java.lang.String strProviderName)
strProviderName
- The provider name.java.lang.String getProvider()
java.lang.String getValueAsString()
byte[] getValueAsBytes()
byte[] getEncryptedValueAsBytes()
java.lang.String getEncryptedValueAsString()
java.lang.String getNewValueAsString()
getValueAsString()
instead.byte[] getNewValueAsBytes()
getValueAsBytes()
instead.byte[] getNewEncryptedValueAsBytes()
getEncryptedValueAsBytes()
instead.java.lang.String getNewEncryptedValueAsString()
getEncryptedValueAsString()
instead.java.lang.String getWorkingDirectory()
void updateValue() throws java.lang.Exception
java.lang.Exception
- The value of the current key value cannot be updated.void setProperties(java.util.HashMap hshProperties)
hshProperties
- The name-value pair of configuration properties.java.util.HashMap getProperties()
void initialize() throws java.lang.Exception
java.lang.Exception
- The key could not be initialized.