Package com.netscape.certsrv.dbs.keydb
Interface IKeyRecord
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringATTR_ALGORITHMstatic java.lang.StringATTR_ARCHIVED_BYstatic java.lang.StringATTR_CLIENT_IDstatic java.lang.StringATTR_CREATE_TIMEstatic java.lang.StringATTR_DATA_TYPEstatic java.lang.StringATTR_DATE_OF_RECOVERYstatic java.lang.StringATTR_IDstatic java.lang.StringATTR_KEY_SIZEstatic java.lang.StringATTR_META_INFOstatic java.lang.StringATTR_MODIFY_TIMEstatic java.lang.StringATTR_OWNER_NAMEstatic java.lang.StringATTR_PRIVATE_KEY_DATAstatic java.lang.StringATTR_PUBLIC_KEY_DATAstatic java.lang.StringATTR_REALMstatic java.lang.StringATTR_STATEstatic java.lang.StringATTR_STATUSstatic java.lang.StringSTATUS_ANYstatic java.lang.StringSTATUS_INVALIDstatic java.lang.StringSTATUS_VALID
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetAlgorithm()Retrieves key algorithm.java.lang.StringgetArchivedBy()Retrieves archiver identifier.java.lang.StringgetClientId()Retrieves client ID.java.util.DategetCreateTime()Retrieves creation time.java.lang.StringgetDataType()Retrieves key data type.java.util.Date[]getDateOfRevocation()Retrieves dates of recovery.java.lang.IntegergetKeySize()Retrieves key length.java.lang.StringgetKeyStatus()Retrieves key status.MetaInfogetMetaInfo()Retrieves meta info.java.util.DategetModifyTime()Retrieves last modification time.java.lang.StringgetOwnerName()Retrieves key owner name.byte[]getPublicKeyData()Retrieves public key data.java.lang.StringgetRealm()Retrieves authorization realm.java.math.BigIntegergetSerialNumber()Retrieves key identifier.KeyStategetState()Retrieves the state of the key.org.mozilla.jss.netscape.security.util.WrappingParamsgetWrappingParams(org.mozilla.jss.netscape.security.util.WrappingParams oldParams)java.lang.BooleanisEncrypted()voidsetWrappingParams(org.mozilla.jss.netscape.security.util.WrappingParams params, boolean encrypted)-
Methods inherited from interface com.netscape.certsrv.base.IAttrSet
delete, get, getElements, set
-
Methods inherited from interface com.netscape.certsrv.dbs.IDBObj
getSerializableAttrNames
-
-
-
-
Field Detail
-
ATTR_ID
static final java.lang.String ATTR_ID
- See Also:
- Constant Field Values
-
ATTR_STATE
static final java.lang.String ATTR_STATE
- See Also:
- Constant Field Values
-
ATTR_ALGORITHM
static final java.lang.String ATTR_ALGORITHM
- See Also:
- Constant Field Values
-
ATTR_KEY_SIZE
static final java.lang.String ATTR_KEY_SIZE
- See Also:
- Constant Field Values
-
ATTR_OWNER_NAME
static final java.lang.String ATTR_OWNER_NAME
- See Also:
- Constant Field Values
-
ATTR_PRIVATE_KEY_DATA
static final java.lang.String ATTR_PRIVATE_KEY_DATA
- See Also:
- Constant Field Values
-
ATTR_PUBLIC_KEY_DATA
static final java.lang.String ATTR_PUBLIC_KEY_DATA
- See Also:
- Constant Field Values
-
ATTR_DATE_OF_RECOVERY
static final java.lang.String ATTR_DATE_OF_RECOVERY
- See Also:
- Constant Field Values
-
ATTR_CREATE_TIME
static final java.lang.String ATTR_CREATE_TIME
- See Also:
- Constant Field Values
-
ATTR_MODIFY_TIME
static final java.lang.String ATTR_MODIFY_TIME
- See Also:
- Constant Field Values
-
ATTR_META_INFO
static final java.lang.String ATTR_META_INFO
- See Also:
- Constant Field Values
-
ATTR_ARCHIVED_BY
static final java.lang.String ATTR_ARCHIVED_BY
- See Also:
- Constant Field Values
-
ATTR_CLIENT_ID
static final java.lang.String ATTR_CLIENT_ID
- See Also:
- Constant Field Values
-
ATTR_DATA_TYPE
static final java.lang.String ATTR_DATA_TYPE
- See Also:
- Constant Field Values
-
ATTR_STATUS
static final java.lang.String ATTR_STATUS
- See Also:
- Constant Field Values
-
ATTR_REALM
static final java.lang.String ATTR_REALM
- See Also:
- Constant Field Values
-
STATUS_ANY
static final java.lang.String STATUS_ANY
- See Also:
- Constant Field Values
-
STATUS_VALID
static final java.lang.String STATUS_VALID
- See Also:
- Constant Field Values
-
STATUS_INVALID
static final java.lang.String STATUS_INVALID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getState
KeyState getState() throws EBaseException
Retrieves the state of the key.- Returns:
- key state
- Throws:
EBaseException- failed to retrieve state of the key
-
getSerialNumber
java.math.BigInteger getSerialNumber() throws EBaseExceptionRetrieves key identifier.- Returns:
- key id
- Throws:
EBaseException- failed to retrieve key id
-
getOwnerName
java.lang.String getOwnerName() throws EBaseExceptionRetrieves key owner name.- Returns:
- key owner name
- Throws:
EBaseException- failed to retrieve key owner name
-
getAlgorithm
java.lang.String getAlgorithm()
Retrieves key algorithm.- Returns:
- key algorithm
-
getKeySize
java.lang.Integer getKeySize() throws EBaseExceptionRetrieves key length.- Returns:
- key length
- Throws:
EBaseException- failed to retrieve key length
-
getMetaInfo
MetaInfo getMetaInfo()
Retrieves meta info.- Returns:
- MetaInfo
-
getClientId
java.lang.String getClientId() throws EBaseExceptionRetrieves client ID.- Returns:
- client id
- Throws:
EBaseException- failed to retrieve client id
-
getDataType
java.lang.String getDataType() throws EBaseExceptionRetrieves key data type.- Returns:
- data type
- Throws:
EBaseException- failed to retrieve data type
-
getKeyStatus
java.lang.String getKeyStatus() throws EBaseExceptionRetrieves key status.- Returns:
- key status
- Throws:
EBaseException- failed to retrieve key status
-
getArchivedBy
java.lang.String getArchivedBy()
Retrieves archiver identifier.- Returns:
- archiver uid
-
getCreateTime
java.util.Date getCreateTime()
Retrieves creation time.- Returns:
- creation time
-
getModifyTime
java.util.Date getModifyTime()
Retrieves last modification time.- Returns:
- modification time
-
getDateOfRevocation
java.util.Date[] getDateOfRevocation() throws EBaseExceptionRetrieves dates of recovery.- Returns:
- recovery history
- Throws:
EBaseException- failed to retrieve recovery history
-
getPublicKeyData
byte[] getPublicKeyData() throws EBaseExceptionRetrieves public key data.- Returns:
- public key data
- Throws:
EBaseException- failed to retrieve public key data
-
getRealm
java.lang.String getRealm() throws EBaseExceptionRetrieves authorization realm.- Returns:
- authorization realm
- Throws:
EBaseException- failed to retrieve authorization realm
-
setWrappingParams
void setWrappingParams(org.mozilla.jss.netscape.security.util.WrappingParams params, boolean encrypted) throws java.lang.Exception- Throws:
java.lang.Exception
-
getWrappingParams
org.mozilla.jss.netscape.security.util.WrappingParams getWrappingParams(org.mozilla.jss.netscape.security.util.WrappingParams oldParams) throws java.lang.Exception- Throws:
java.lang.Exception
-
isEncrypted
java.lang.Boolean isEncrypted() throws EBaseException- Throws:
EBaseException
-
-