com.maverick.ssh.components.jce
Class Ssh2EcdsaSha2NistPrivateKey

java.lang.Object
  extended by com.maverick.ssh.components.jce.Ssh2EcdsaSha2NistPrivateKey
All Implemented Interfaces:
SshPrivateKey

public class Ssh2EcdsaSha2NistPrivateKey
extends Object
implements SshPrivateKey


Constructor Summary
Ssh2EcdsaSha2NistPrivateKey(ECPrivateKey prv)
           
 
Method Summary
 String getAlgorithm()
           
 PrivateKey getJCEPrivateKey()
           
 byte[] sign(byte[] data)
          Create a signature from the data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Ssh2EcdsaSha2NistPrivateKey

public Ssh2EcdsaSha2NistPrivateKey(ECPrivateKey prv)
                            throws IOException
Throws:
IOException
Method Detail

sign

public byte[] sign(byte[] data)
            throws IOException
Description copied from interface: SshPrivateKey
Create a signature from the data.

Specified by:
sign in interface SshPrivateKey
Returns:
byte[]
Throws:
IOException

getAlgorithm

public String getAlgorithm()
Specified by:
getAlgorithm in interface SshPrivateKey

getJCEPrivateKey

public PrivateKey getJCEPrivateKey()


Copyright © 2013. All Rights Reserved.