Class Ed25519PEMResourceKeyParser
- java.lang.Object
-
- org.apache.sshd.common.util.logging.AbstractLoggingBean
-
- org.apache.sshd.common.config.keys.loader.AbstractKeyPairResourceParser
-
- org.apache.sshd.common.config.keys.loader.pem.AbstractPEMResourceKeyPairParser
-
- org.apache.sshd.common.util.security.eddsa.generic.GenericEd25519PEMResourceKeyParser
-
- org.apache.sshd.common.util.security.eddsa.Ed25519PEMResourceKeyParser
-
- All Implemented Interfaces:
AlgorithmNameProvider,KeyPairResourceLoader,KeyPairResourceParser,KeyPairPEMResourceParser
public class Ed25519PEMResourceKeyParser extends GenericEd25519PEMResourceKeyParser
An implementation ofGenericEd25519PEMResourceKeyParsertied to thenet.i2p.cryptoEdDSA security provider.
-
-
Field Summary
Fields Modifier and Type Field Description static Ed25519PEMResourceKeyParserINSTANCE-
Fields inherited from class org.apache.sshd.common.util.security.eddsa.generic.GenericEd25519PEMResourceKeyParser
BEGIN_ED25519_MARKER, BEGIN_MARKER, BEGINNERS, ED25519_OID, END_ED25519_MARKER, END_MARKER, ENDERS
-
Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log
-
Fields inherited from interface org.apache.sshd.common.config.keys.loader.KeyPairResourceLoader
MAX_CIPHER_NAME_LENGTH, MAX_KEY_COMMENT_LENGTH, MAX_KEY_TYPE_NAME_LENGTH, MAX_PRIVATE_KEY_DATA_SIZE, MAX_PUBLIC_KEY_DATA_SIZE
-
Fields inherited from interface org.apache.sshd.common.config.keys.loader.KeyPairResourceParser
EMPTY
-
-
Constructor Summary
Constructors Constructor Description Ed25519PEMResourceKeyParser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static net.i2p.crypto.eddsa.EdDSAPrivateKeydecodeEdDSAPrivateKey(byte[] keyData)static net.i2p.crypto.eddsa.EdDSAPrivateKeygenerateEdDSAPrivateKey(byte[] seed)-
Methods inherited from class org.apache.sshd.common.util.security.eddsa.generic.GenericEd25519PEMResourceKeyParser
decodeEd25519KeyPair, extractKeyPairs, parseEd25519KeyPair, parseEd25519KeyPair
-
Methods inherited from class org.apache.sshd.common.config.keys.loader.pem.AbstractPEMResourceKeyPairParser
applyPrivateKeyCipher, extractKeyPairs, getAlgorithm, getAlgorithmIdentifier
-
Methods inherited from class org.apache.sshd.common.config.keys.loader.AbstractKeyPairResourceParser
canExtractKeyPairs, extractKeyPairs, getBeginners, getEnders, getEndingMarkers, loadKeyPairs, separateDataLinesFromHeaders
-
Methods inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warn
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.sshd.common.config.keys.loader.KeyPairResourceLoader
loadKeyPairs, loadKeyPairs, loadKeyPairs, loadKeyPairs, loadKeyPairs, loadKeyPairs, loadKeyPairs, loadKeyPairs, loadKeyPairs, loadKeyPairs, loadKeyPairs, loadKeyPairs
-
Methods inherited from interface org.apache.sshd.common.config.keys.loader.KeyPairResourceParser
canExtractKeyPairs
-
-
-
-
Field Detail
-
INSTANCE
public static final Ed25519PEMResourceKeyParser INSTANCE
-
-
Method Detail
-
decodeEdDSAPrivateKey
public static net.i2p.crypto.eddsa.EdDSAPrivateKey decodeEdDSAPrivateKey(byte[] keyData) throws java.io.IOException, java.security.GeneralSecurityException- Throws:
java.io.IOExceptionjava.security.GeneralSecurityException
-
generateEdDSAPrivateKey
public static net.i2p.crypto.eddsa.EdDSAPrivateKey generateEdDSAPrivateKey(byte[] seed) throws java.security.GeneralSecurityException- Throws:
java.security.GeneralSecurityException
-
-