Class Certificate<T extends PublicKey>

java.lang.Object
com.hierynomus.sshj.userauth.certificate.Certificate<T>
Type Parameters:
T - inner public key type
All Implemented Interfaces:
Serializable, Key, PublicKey

public class Certificate<T extends PublicKey> extends Object implements PublicKey
Certificate wrapper for public keys, created to help implement protocol described here: https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/PROTOCOL.certkeys?annotate=HEAD Consumed primarily by net.shmizz.sshj.common.KeyType
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • publicKey

      private final T extends PublicKey publicKey
    • nonce

      private final byte[] nonce
    • serial

      private final BigInteger serial
    • type

      private final long type
    • id

      private final String id
    • validPrincipals

      private final List<String> validPrincipals
    • validAfter

      private final Date validAfter
    • validBefore

      private final Date validBefore
    • critOptions

      private final Map<String,String> critOptions
    • extensions

      private final Map<String,String> extensions
    • signatureKey

      private final byte[] signatureKey
    • signature

      private final byte[] signature
  • Constructor Details

  • Method Details

    • getBuilder

      public static <P extends PublicKey> Certificate.Builder<P> getBuilder()
    • getNonce

      public byte[] getNonce()
    • getSerial

      public BigInteger getSerial()
    • getType

      public long getType()
    • getId

      public String getId()
    • getValidPrincipals

      public List<String> getValidPrincipals()
    • getValidAfter

      public Date getValidAfter()
    • getValidBefore

      public Date getValidBefore()
    • getCritOptions

      public Map<String,String> getCritOptions()
    • getExtensions

      public Map<String,String> getExtensions()
    • getSignatureKey

      public byte[] getSignatureKey()
    • getSignature

      public byte[] getSignature()
    • getKey

      public T getKey()
    • getEncoded

      public byte[] getEncoded()
      Specified by:
      getEncoded in interface Key
    • getAlgorithm

      public String getAlgorithm()
      Specified by:
      getAlgorithm in interface Key
    • getFormat

      public String getFormat()
      Specified by:
      getFormat in interface Key