Package org.apache.sshd.putty
Class RSAPuttyKeyDecoder
- java.lang.Object
-
- org.apache.sshd.common.util.logging.AbstractLoggingBean
-
- org.apache.sshd.common.config.keys.impl.AbstractIdentityResourceLoader<PUB,PRV>
-
- org.apache.sshd.putty.AbstractPuttyKeyDecoder<java.security.interfaces.RSAPublicKey,java.security.interfaces.RSAPrivateKey>
-
- org.apache.sshd.putty.RSAPuttyKeyDecoder
-
- All Implemented Interfaces:
IdentityResourceLoader<java.security.interfaces.RSAPublicKey,java.security.interfaces.RSAPrivateKey>
,KeyTypeNamesSupport
,KeyPairResourceLoader
,KeyPairResourceParser
,PuttyKeyPairResourceParser<java.security.interfaces.RSAPublicKey,java.security.interfaces.RSAPrivateKey>
public class RSAPuttyKeyDecoder extends AbstractPuttyKeyDecoder<java.security.interfaces.RSAPublicKey,java.security.interfaces.RSAPrivateKey>
-
-
Field Summary
Fields Modifier and Type Field Description static RSAPuttyKeyDecoder
INSTANCE
-
Fields inherited from class org.apache.sshd.putty.AbstractPuttyKeyDecoder
ENCRYPTION_HEADER
-
Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log
-
Fields inherited from interface org.apache.sshd.common.config.keys.IdentityResourceLoader
MAX_BIGINT_OCTETS_COUNT
-
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
-
Fields inherited from interface org.apache.sshd.putty.PuttyKeyPairResourceParser
KEY_FILE_HEADER_PREFIX, KNOWN_HEADERS, NO_PRIVATE_KEY_ENCRYPTION_VALUE, PPK_FILE_SUFFIX, PRIVATE_LINES_HEADER, PUBLIC_LINES_HEADER
-
-
Constructor Summary
Constructors Constructor Description RSAPuttyKeyDecoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<java.security.KeyPair>
loadKeyPairs(NamedResource resourceKey, PuttyKeyReader pubReader, PuttyKeyReader prvReader, java.util.Map<java.lang.String,java.lang.String> headers)
-
Methods inherited from class org.apache.sshd.putty.AbstractPuttyKeyDecoder
canExtractKeyPairs, extractDataLines, loadKeyPairs, loadKeyPairs, loadKeyPairs, loadKeyPairs, loadKeyPairs
-
Methods inherited from class org.apache.sshd.common.config.keys.impl.AbstractIdentityResourceLoader
getPrivateKeyType, getPublicKeyType, getSupportedKeyTypes
-
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.IdentityResourceLoader
getPrivateKeyType, getPublicKeyType
-
Methods inherited from interface org.apache.sshd.common.config.keys.loader.KeyPairResourceLoader
loadKeyPairs, loadKeyPairs, loadKeyPairs, loadKeyPairs, loadKeyPairs, loadKeyPairs, loadKeyPairs, loadKeyPairs, loadKeyPairs, loadKeyPairs, loadKeyPairs
-
Methods inherited from interface org.apache.sshd.common.config.keys.KeyTypeNamesSupport
getSupportedKeyTypes
-
-
-
-
Field Detail
-
INSTANCE
public static final RSAPuttyKeyDecoder INSTANCE
-
-
Method Detail
-
loadKeyPairs
public java.util.Collection<java.security.KeyPair> loadKeyPairs(NamedResource resourceKey, PuttyKeyReader pubReader, PuttyKeyReader prvReader, java.util.Map<java.lang.String,java.lang.String> headers) throws java.io.IOException, java.security.GeneralSecurityException
- Specified by:
loadKeyPairs
in classAbstractPuttyKeyDecoder<java.security.interfaces.RSAPublicKey,java.security.interfaces.RSAPrivateKey>
- Throws:
java.io.IOException
java.security.GeneralSecurityException
-
-