Class KeyInfo

java.lang.Object
com.netscape.certsrv.key.KeyInfo
All Implemented Interfaces:
JSONSerializer

public class KeyInfo extends Object implements JSONSerializer
Author:
alee
  • Field Details

    • keyId

      protected KeyId keyId
    • keyURL

      protected String keyURL
    • clientKeyID

      protected String clientKeyID
    • status

      protected String status
    • algorithm

      protected String algorithm
    • size

      protected Integer size
    • ownerName

      protected String ownerName
  • Constructor Details

    • KeyInfo

      public KeyInfo()
  • Method Details

    • getKeyId

      public KeyId getKeyId()
      Returns:
      the key ID
    • setKeyId

      public void setKeyId(KeyId keyId)
    • getKeyURL

      public String getKeyURL()
      Returns:
      the keyURL
    • setKeyURL

      public void setKeyURL(String keyURL)
      Parameters:
      keyURL - the keyURL to set
    • getClientKeyID

      public String getClientKeyID()
      Returns:
      the clientKeyID
    • setClientKeyID

      public void setClientKeyID(String clientKeyID)
      Parameters:
      clientKeyID - the clientKeyID to set
    • getStatus

      public String getStatus()
    • setStatus

      public void setStatus(String status)
    • getAlgorithm

      public String getAlgorithm()
    • setAlgorithm

      public void setAlgorithm(String algorithm)
    • getSize

      public Integer getSize()
    • setSize

      public void setSize(Integer size)
    • getOwnerName

      public String getOwnerName()
    • setOwnerName

      public void setOwnerName(String ownerName)
    • 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

      public String getRealm()
    • setRealm

      public void setRealm(String realm)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object