Package com.netscape.certsrv.key
Class Key
- java.lang.Object
-
- com.netscape.certsrv.key.Key
-
public class Key extends java.lang.ObjectRepresents a Key stored in the DRM. Return type for all the key retrieval requests of the KeyClient.- Author:
- akoneru
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearSensitiveData()static KeyfromJSON(java.lang.String json)static KeyfromXML(java.lang.String xml)java.lang.StringgetAlgorithm()byte[]getData()java.lang.StringgetEncryptAlgorithmOID()byte[]getEncryptedData()byte[]getNonceData()java.lang.StringgetP12Data()java.lang.StringgetPublicKey()RequestIdgetRequestId()java.lang.IntegergetSize()java.lang.StringgetType()java.lang.StringgetWrapAlgorithm()voidsetAlgorithm(java.lang.String algorithm)voidsetData(byte[] data)voidsetEncryptAlgorithmOID(java.lang.String encryptAlgorithmOID)voidsetEncryptedData(byte[] encryptedData)voidsetNonceData(byte[] nonceData)voidsetP12Data(java.lang.String p12Data)voidsetPublicKey(java.lang.String publicKey)voidsetRequestId(RequestId requestId)voidsetSize(java.lang.Integer size)voidsetType(java.lang.String type)voidsetWrapAlgorithm(java.lang.String wrapAlgorithm)java.lang.StringtoJSON()java.lang.StringtoString()java.lang.StringtoXML()
-
-
-
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()
-
toXML
public java.lang.String toXML() throws java.lang.Exception- Throws:
java.lang.Exception
-
fromXML
public static Key fromXML(java.lang.String xml) throws java.lang.Exception
- Throws:
java.lang.Exception
-
toJSON
public java.lang.String toJSON() throws java.lang.Exception- Throws:
java.lang.Exception
-
fromJSON
public static Key fromJSON(java.lang.String json) throws java.lang.Exception
- Throws:
java.lang.Exception
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-