Class KeyPairDeferred

java.lang.Object
com.jcraft.jsch.KeyPair
com.jcraft.jsch.KeyPairDeferred

public class KeyPairDeferred
extends KeyPair
A KeyPair which can only reveal its type and content after it was decrypted using decrypt(byte[]). This is needed for openssh-v1-private-key format.
  • Method Details

    • decrypt

      public boolean decrypt​(java.lang.String _passphrase)
      Overrides:
      decrypt in class KeyPair
    • decrypt

      public boolean decrypt​(byte[] _passphrase)
      Overrides:
      decrypt in class KeyPair
    • getSignature

      public byte[] getSignature​(byte[] data)
      Specified by:
      getSignature in class KeyPair
    • getSignature

      public byte[] getSignature​(byte[] data, java.lang.String alg)
      Specified by:
      getSignature in class KeyPair
    • getVerifier

      public Signature getVerifier()
      Specified by:
      getVerifier in class KeyPair
    • getVerifier

      public Signature getVerifier​(java.lang.String alg)
      Specified by:
      getVerifier in class KeyPair
    • forSSHAgent

      public byte[] forSSHAgent() throws JSchException
      Specified by:
      forSSHAgent in class KeyPair
      Throws:
      JSchException
    • getKeyType

      public int getKeyType()
      Specified by:
      getKeyType in class KeyPair
    • getPublicKeyBlob

      public byte[] getPublicKeyBlob()
      Description copied from class: KeyPair
      Returns the blob of the public key.
      Overrides:
      getPublicKeyBlob in class KeyPair
      Returns:
      blob of the public key
    • getPublicKeyComment

      public java.lang.String getPublicKeyComment()
      Overrides:
      getPublicKeyComment in class KeyPair
    • getFingerPrint

      public java.lang.String getFingerPrint()
      Description copied from class: KeyPair
      Returns the finger-print of the public key.
      Overrides:
      getFingerPrint in class KeyPair
      Returns:
      finger print
    • isEncrypted

      public boolean isEncrypted()
      Overrides:
      isEncrypted in class KeyPair