|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ICryptographicKeyBase
This interface allows you to manage cryptographic keys. To change the state of a cryptographic key, or to obtain its secret value, you must be authenticated as a member of the CryptographyOfficers group. You can access the cryptographic key state without being authenticated as a member of the CryptographyOfficers group.
| Nested Class Summary | |
|---|---|
static class |
ICryptographicKeyBase.KeyState
Represents the current state of the cryptographic key. |
| Field Summary | |
|---|---|
static java.lang.String |
KIND
The Kind used to identify this object type. |
static java.lang.String |
PROGID
The ProgID used to identify this object type. |
| Method Summary | |
|---|---|
long |
getActivePeriodInMilliseconds()
Returns the number of milliseconds that the key has been active. |
ICryptographicKeyBase.KeyState |
getKeyState()
Returns the state of the key. |
byte[] |
getKeyValue()
Returns the secret value of the key. |
boolean |
isCompromised()
Returns whether or not the key has been compromised. |
void |
resumeRekey()
Resumes the process of re-encrypting data with a new key. |
void |
setCompromised()
|
void |
startRekey()
Start the process of re-encrypting data with a new key. |
void |
suspendRekey()
Suspends the process of re-encrypting data with a new key. |
| Field Detail |
|---|
static final java.lang.String KIND
The Kind used to identify this object type.
static final java.lang.String PROGID
The ProgID used to identify this object type.
| Method Detail |
|---|
byte[] getKeyValue()
Returns the secret value of the key. To access this value, you must authenticated as a
user that belongs to the CryptographyOfficers group. Otherwise, this method returns null.
null if you are not authenticated as a member of the CryptographyOfficers group.
ICryptographicKeyBase.KeyState getKeyState()
throws SDKException
Returns the state of the key.
SDKException - Thrown if current state is not available.
void suspendRekey()
throws SDKException
Suspends the process of re-encrypting data with a new key.
This changes the state of a cryptographic key to KeyState.REKEY_SUSPENDED.
The re-encryption process must be in progress (i.e. the key must be in the state
KeyState.REKEY_IN_PROGRESS) before the re-encryption process can be suspended.
You must be authenticated as a user that belongs to the
CryptographyOfficers group in order to change the state of a cryptographic key
and commit it to the CMS.
SDKException - Thrown if the key is not in the state KeyState.REKEY_IN_PROGRESS.
void resumeRekey()
throws SDKException
Resumes the process of re-encrypting data with a new key.
This changes the state of a cryptographic key to KeyState.REKEY_IN_PROGRESS.
The re-encryption process must be suspended (i.e. the key must be in the state
KeyState.REKEY_SUSPENDED) before the re-enryption process can be resumed.
You must be authenticated as a user that belongs to the
CryptographyOfficers group in order to change the state of a cryptographic key
and commit it to the CMS.
SDKException - Thrown if the key is not in the state KeyState.REKEY_SUSPENDED.
void startRekey()
throws SDKException
Start the process of re-encrypting data with a new key.
This changes the state of a cryptographic key to KeyState.REKEY_IN_PROGRESS.
The key must be deactived (i.e. the key must be in the state KeyState.DEACTIVATED)
before the re-encryption process can begin.
Once the re-encryption process is complete, the key is set to the state
KeyState.REVOKED and may be deleted from the repository.
You must be authenticated as a user that belongs to the
CryptographyOfficers group in order to change the state of a cryptographic key
and commit it to the CMS.
SDKException - Thrown if the key is not in the state KeyState.DEACTIVATED.
long getActivePeriodInMilliseconds()
throws SDKException
Returns the number of milliseconds that the key has been active.
This method throws an exception if the key is not in the state KeyState.ACTIVE.
SDKException - Thrown if key is not active or the creation time is not known.boolean isCompromised()
Returns whether or not the key has been compromised.
true if the key has been compromised, false otherwise.
void setCompromised()
throws SDKException
SDKException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||