Package com.netscape.certsrv.key
Class Key
- java.lang.Object
-
- com.netscape.certsrv.key.Key
-
- All Implemented Interfaces:
JSONSerializer
public class Key extends java.lang.Object implements JSONSerializer
Represents a Key stored in the DRM. Return type for all the key retrieval requests of the KeyClient.- Author:
- akoneru
-
-
Field Summary
-
Fields inherited from interface com.netscape.certsrv.util.JSONSerializer
logger
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearSensitiveData()
boolean
equals(java.lang.Object obj)
java.lang.String
getAlgorithm()
byte[]
getData()
java.lang.String
getEncryptAlgorithmOID()
byte[]
getEncryptedData()
byte[]
getNonceData()
java.lang.String
getP12Data()
java.lang.String
getPublicKey()
RequestId
getRequestId()
java.lang.Integer
getSize()
java.lang.String
getType()
java.lang.String
getWrapAlgorithm()
int
hashCode()
void
setAlgorithm(java.lang.String algorithm)
void
setData(byte[] data)
void
setEncryptAlgorithmOID(java.lang.String encryptAlgorithmOID)
void
setEncryptedData(byte[] encryptedData)
void
setNonceData(byte[] nonceData)
void
setP12Data(java.lang.String p12Data)
void
setPublicKey(java.lang.String publicKey)
void
setRequestId(RequestId requestId)
void
setSize(java.lang.Integer size)
void
setType(java.lang.String type)
void
setWrapAlgorithm(java.lang.String wrapAlgorithm)
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.netscape.certsrv.util.JSONSerializer
toJSON
-
-
-
-
Constructor Detail
-
Key
public Key()
-
Key
public Key(KeyData data)
-
-
Method Detail
-
getEncryptedData
public byte[] getEncryptedData()
-
setEncryptedData
public void setEncryptedData(byte[] encryptedData)
-
getNonceData
public byte[] getNonceData()
-
setNonceData
public void setNonceData(byte[] nonceData)
-
getP12Data
public java.lang.String getP12Data()
-
setP12Data
public void setP12Data(java.lang.String p12Data)
-
getAlgorithm
public java.lang.String getAlgorithm()
-
setAlgorithm
public void setAlgorithm(java.lang.String algorithm)
-
getSize
public java.lang.Integer getSize()
-
setSize
public void setSize(java.lang.Integer size)
-
getData
public byte[] getData()
-
setData
public void setData(byte[] data)
-
getRequestId
public RequestId getRequestId()
-
setRequestId
public void setRequestId(RequestId requestId)
-
getWrapAlgorithm
public java.lang.String getWrapAlgorithm()
-
setWrapAlgorithm
public void setWrapAlgorithm(java.lang.String wrapAlgorithm)
-
getEncryptAlgorithmOID
public java.lang.String getEncryptAlgorithmOID()
-
setEncryptAlgorithmOID
public void setEncryptAlgorithmOID(java.lang.String encryptAlgorithmOID)
-
getType
public java.lang.String getType()
-
setType
public void setType(java.lang.String type)
-
getPublicKey
public java.lang.String getPublicKey()
-
setPublicKey
public void setPublicKey(java.lang.String publicKey)
-
clearSensitiveData
public void clearSensitiveData()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-