Top Constructors Methods
org.apache.sshd.common.util.security.eddsa

public Class NetI2pCryptoEdDSASupport

extends Object
implements EdDSASupport<EdDSAPublicKey, EdDSAPrivateKey>
Class Inheritance
All Implemented Interfaces
org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport
Imports
java.io.IOException, java.security.GeneralSecurityException, .Key, .PrivateKey, .PublicKey, java.security.spec.KeySpec, net.i2p.crypto.eddsa.EdDSAPrivateKey, .EdDSAPublicKey, net.i2p.crypto.eddsa.spec.EdDSAPrivateKeySpec, .EdDSAPublicKeySpec, org.apache.sshd.common.config.keys.PrivateKeyEntryDecoder, .PublicKeyEntryDecoder, org.apache.sshd.common.signature.Signature, org.apache.sshd.common.util.buffer.Buffer, org.apache.sshd.common.util.security.SecurityUtils, org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
public boolean
public KeySpec
public KeySpec
public EdDSAPrivateKey
public EdDSAPublicKey
public int
public Class<? extends PrivateKey>
public PublicKeyEntryDecoder<EdDSAPublicKey, EdDSAPrivateKey>
public Class<? extends PublicKey>
public Signature
public String
public PrivateKeyEntryDecoder<EdDSAPublicKey, EdDSAPrivateKey>
public byte[]
public byte[]
public <B extends Buffer> B
putEDDSAKeyPair(B
the buffer to insert the keys into
buffer
,
PublicKey
the public key to be inserted into the buffer
pubKey
,
PrivateKey
the private key to be inserted into the buffer
prvKey
)

Implements org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.putEDDSAKeyPair.

public <B extends Buffer> B
putRawEDDSAPublicKey(B
the buffer to insert the public key into
buffer
,
PublicKey
the public key to be inserted into the buffer
key
)

Implements org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.putRawEDDSAPublicKey.

public EdDSAPublicKey
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

NetI2pCryptoEdDSASupportback to summary
public NetI2pCryptoEdDSASupport()

Method Detail

compareEDDSAPPublicKeysback to summary
public boolean compareEDDSAPPublicKeys(PublicKey k1, PublicKey k2)

Implements org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.compareEDDSAPPublicKeys.

Parameters
k1:PublicKey

Doc from org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.compareEDDSAPPublicKeys.

the first key

k2:PublicKey

Doc from org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.compareEDDSAPPublicKeys.

the second key

Returns:boolean

Doc from org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.compareEDDSAPPublicKeys.

true if both keys are instances of the public key type associated with the security provider and they are equal.

Annotations
@Override
compareEDDSAPrivateKeysback to summary
public boolean compareEDDSAPrivateKeys(PrivateKey k1, PrivateKey k2)

Implements org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.compareEDDSAPrivateKeys.

Parameters
k1:PrivateKey

Doc from org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.compareEDDSAPrivateKeys.

the first key

k2:PrivateKey

Doc from org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.compareEDDSAPrivateKeys.

the second key

Returns:boolean

Doc from org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.compareEDDSAPrivateKeys.

true if both keys are instances of the private key type associated with the security provider and they are equal.

Annotations
@Override
createPrivateKeySpecback to summary
public KeySpec createPrivateKeySpec(EdDSAPrivateKey privateKey)

Implements org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.createPrivateKeySpec.

Parameters
privateKey:EdDSAPrivateKey

Doc from org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.createPrivateKeySpec.

the private key

Returns:KeySpec

Doc from org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.createPrivateKeySpec.

a key spec from the private key

Annotations
@Override
createPublicKeySpecback to summary
public KeySpec createPublicKeySpec(EdDSAPublicKey publicKey)

Implements org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.createPublicKeySpec.

Parameters
publicKey:EdDSAPublicKey

Doc from org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.createPublicKeySpec.

the public key

Returns:KeySpec

Doc from org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.createPublicKeySpec.

a key spec from the public key

Annotations
@Override
generateEDDSAPrivateKeyback to summary
public EdDSAPrivateKey generateEDDSAPrivateKey(byte[] seed) throws GeneralSecurityException

Implements org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.generateEDDSAPrivateKey.

Parameters
seed:byte[]

Doc from org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.generateEDDSAPrivateKey.

the raw private key bytes

Returns:EdDSAPrivateKey

Doc from org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.generateEDDSAPrivateKey.

the associated private key

Annotations
@Override
generateEDDSAPublicKeyback to summary
public EdDSAPublicKey generateEDDSAPublicKey(byte[] seed) throws GeneralSecurityException

Implements org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.generateEDDSAPublicKey.

Parameters
seed:byte[]

Doc from org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.generateEDDSAPublicKey.

the raw public key bytes

Returns:EdDSAPublicKey

Doc from org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.generateEDDSAPublicKey.

the associated public key

Annotations
@Override
getEDDSAKeySizeback to summary
public int getEDDSAKeySize(Key key)

Implements org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.getEDDSAKeySize.

Parameters
key:Key

Doc from org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.getEDDSAKeySize.

the key to get the size of.

Returns:int

Doc from org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.getEDDSAKeySize.

the size of the key if it is an EdDSA key, -1 otherwise.

Annotations
@Override
getEDDSAPrivateKeyTypeback to summary
public Class<? extends PrivateKey> getEDDSAPrivateKeyType()

Implements org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.getEDDSAPrivateKeyType.

Returns:Class<? extends PrivateKey>

Doc from org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.getEDDSAPrivateKeyType.

the private key class type associated with the security provider.

Annotations
@Override
getEDDSAPublicKeyEntryDecoderback to summary
public PublicKeyEntryDecoder<EdDSAPublicKey, EdDSAPrivateKey> getEDDSAPublicKeyEntryDecoder()

Implements org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.getEDDSAPublicKeyEntryDecoder.

Returns:PublicKeyEntryDecoder<EdDSAPublicKey, EdDSAPrivateKey>

Doc from org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.getEDDSAPublicKeyEntryDecoder.

the public key entry decoder implementation associated with the security provider.

Annotations
@Override
getEDDSAPublicKeyTypeback to summary
public Class<? extends PublicKey> getEDDSAPublicKeyType()

Implements org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.getEDDSAPublicKeyType.

Returns:Class<? extends PublicKey>

Doc from org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.getEDDSAPublicKeyType.

the public key class type associated with the security provider.

Annotations
@Override
getEDDSASignerback to summary
public Signature getEDDSASigner()

Implements org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.getEDDSASigner.

Returns:Signature

Doc from org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.getEDDSASigner.

the signature implementation associated with the security provider.

Annotations
@Override
getKeyFactoryAlgorithmback to summary
public String getKeyFactoryAlgorithm()

Implements org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.getKeyFactoryAlgorithm.

Returns:String

Doc from org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.getKeyFactoryAlgorithm.

the algorithm name used by the provider's java.security.KeyFactory.

Annotations
@Override
getOpenSSHEDDSAPrivateKeyEntryDecoderback to summary
public PrivateKeyEntryDecoder<EdDSAPublicKey, EdDSAPrivateKey> getOpenSSHEDDSAPrivateKeyEntryDecoder()

Implements org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.getOpenSSHEDDSAPrivateKeyEntryDecoder.

Returns:PrivateKeyEntryDecoder<EdDSAPublicKey, EdDSAPrivateKey>

Doc from org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.getOpenSSHEDDSAPrivateKeyEntryDecoder.

the private key entry decoder implementation associated with the security provider.

Annotations
@Override
getPrivateKeyDataback to summary
public byte[] getPrivateKeyData(EdDSAPrivateKey privateKey) throws IOException

Implements org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.getPrivateKeyData.

Parameters
privateKey:EdDSAPrivateKey

Doc from org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.getPrivateKeyData.

the private key

Returns:byte[]

Doc from org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.getPrivateKeyData.

the raw private key bytes associated with the key

Annotations
@Override
getPublicKeyDataback to summary
public byte[] getPublicKeyData(EdDSAPublicKey publicKey)

Implements org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.getPublicKeyData.

Parameters
publicKey:EdDSAPublicKey

Doc from org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.getPublicKeyData.

the public key

Returns:byte[]

Doc from org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.getPublicKeyData.

the raw public key bytes associated with the key

Annotations
@Override
putEDDSAKeyPairback to summary
public <B extends Buffer> B putEDDSAKeyPair(B buffer, PublicKey pubKey, PrivateKey prvKey)

Implements org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.putEDDSAKeyPair.

Parameters
<B>

Doc from org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.putEDDSAKeyPair. type of the buffer

buffer:B

Doc from org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.putEDDSAKeyPair.

the buffer to insert the keys into

pubKey:PublicKey

Doc from org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.putEDDSAKeyPair.

the public key to be inserted into the buffer

prvKey:PrivateKey

Doc from org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.putEDDSAKeyPair.

the private key to be inserted into the buffer

Returns:B

Doc from org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.putEDDSAKeyPair.

the buffer that was passed in

Annotations
@Override
putRawEDDSAPublicKeyback to summary
public <B extends Buffer> B putRawEDDSAPublicKey(B buffer, PublicKey key)

Implements org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.putRawEDDSAPublicKey.

Parameters
<B>

Doc from org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.putRawEDDSAPublicKey. type of the buffer

buffer:B

Doc from org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.putRawEDDSAPublicKey.

the buffer to insert the public key into

key:PublicKey

Doc from org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.putRawEDDSAPublicKey.

the public key to be inserted into the buffer

Returns:B

Doc from org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.putRawEDDSAPublicKey.

the buffer that was passed in

Annotations
@Override
recoverEDDSAPublicKeyback to summary
public EdDSAPublicKey recoverEDDSAPublicKey(PrivateKey key) throws GeneralSecurityException

Implements org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.recoverEDDSAPublicKey.

Parameters
key:PrivateKey

Doc from org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.recoverEDDSAPublicKey.

the private key

Returns:EdDSAPublicKey

Doc from org.apache.sshd.common.util.security.eddsa.generic.EdDSASupport.recoverEDDSAPublicKey.

the public key associated with the private key.

Annotations
@Override