Package com.netscape.certsrv.key
Class KeyInfo
java.lang.Object
com.netscape.certsrv.key.KeyInfo
- All Implemented Interfaces:
JSONSerializer
- Author:
- alee
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
protected String
protected KeyId
protected String
protected String
protected Integer
protected String
Fields inherited from interface com.netscape.certsrv.util.JSONSerializer
logger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getKeyId()
byte[]
Converts the stored base64 encoded public key to a byte array and returns that value.getRealm()
getSize()
int
hashCode()
void
setAlgorithm
(String algorithm) void
setClientKeyID
(String clientKeyID) void
void
void
setOwnerName
(String ownerName) void
setPublicKey
(byte[] publicKey) Sets the binary data of the public key in a base64 encoded string format.void
void
void
toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.netscape.certsrv.util.JSONSerializer
toJSON
-
Field Details
-
keyId
-
keyURL
-
clientKeyID
-
status
-
algorithm
-
size
-
ownerName
-
-
Constructor Details
-
KeyInfo
public KeyInfo()
-
-
Method Details
-
getKeyId
- Returns:
- the key ID
-
setKeyId
-
getKeyURL
- Returns:
- the keyURL
-
setKeyURL
- Parameters:
keyURL
- the keyURL to set
-
getClientKeyID
- Returns:
- the clientKeyID
-
setClientKeyID
- Parameters:
clientKeyID
- the clientKeyID to set
-
getStatus
-
setStatus
-
getAlgorithm
-
setAlgorithm
-
getSize
-
setSize
-
getOwnerName
-
setOwnerName
-
getPublicKey
public byte[] getPublicKey()Converts the stored base64 encoded public key to a byte array and returns that value. Returns null, if public key is null.- Returns:
- public key - as a byte array
-
setPublicKey
public void setPublicKey(byte[] publicKey) Sets the binary data of the public key in a base64 encoded string format.- Parameters:
publicKey
- - if null, getPublicKey returns null.
-
getRealm
-
setRealm
-
hashCode
public int hashCode() -
equals
-
toString
-