Class KeyInfo
java.lang.Object
com.netscape.certsrv.key.KeyInfo
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetKeyId()byte[]Converts the stored base64 encoded public key to a byte array and returns that value.getRealm()getSize()inthashCode()voidsetAlgorithm(String algorithm) voidsetClientKeyID(String clientKeyID) voidvoidsetOwnerName(String ownerName) voidsetPublicKey(byte[] publicKey) Sets the binary data of the public key in a base64 encoded string format.voidvoidvoidMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.netscape.certsrv.util.JSONSerializer
toJSON
-
Field Details
-
keyURL
-
clientKeyID
-
status
-
algorithm
-
size
-
ownerName
-
-
Constructor Details
-
KeyInfo
public KeyInfo()
-
-
Method Details
-
getKeyURL
- Returns:
- the keyURL
-
setKeyURL
- Parameters:
keyURL- the keyURL to set
-
getKeyId
- Returns:
- the key ID in the keyURL
-
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
-
equals
-