Top Fields Constructors Methods
org.apache.sshd.common.config.keys.loader

public Class DESPrivateKeyObfuscator

extends AbstractPrivateKeyObfuscator
Class Inheritance
Imports
java.io.IOException, java.security.GeneralSecurityException, java.util.Collections, .List

Author
Apache MINA SSHD Project

Field Summary

Modifier and TypeField and Description
public static final List<Integer>
public static final int
public static final DESPrivateKeyObfuscator

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public byte[]
applyPrivateKeyCipher(byte[]
Original bytes
bytes
,
PrivateKeyEncryptionContext
The encryption context
encContext
,
boolean
If true then encrypt the original bytes, otherwise decrypt them
encryptIt
)

Implements org.apache.sshd.common.config.keys.loader.PrivateKeyObfuscator.applyPrivateKeyCipher.

public List<Integer>
public static final PrivateKeyEncryptionContext
protected int
protected int
Inherited from org.apache.sshd.common.config.keys.loader.AbstractPrivateKeyObfuscator:
appendPrivateKeyEncryptionContextapplyPrivateKeyCipherderiveEncryptionKeygenerateInitializationVectorgetCipherName

Field Detail

AVAILABLE_KEY_LENGTHSback to summary
public static final List<Integer> AVAILABLE_KEY_LENGTHS
DEFAULT_KEY_LENGTHback to summary
public static final int DEFAULT_KEY_LENGTH
INSTANCEback to summary
public static final DESPrivateKeyObfuscator INSTANCE

Constructor Detail

DESPrivateKeyObfuscatorback to summary
public DESPrivateKeyObfuscator()

Method Detail

applyPrivateKeyCipherback to summary
public byte[] applyPrivateKeyCipher(byte[] bytes, PrivateKeyEncryptionContext encContext, boolean encryptIt) throws GeneralSecurityException, IOException

Implements org.apache.sshd.common.config.keys.loader.PrivateKeyObfuscator.applyPrivateKeyCipher.

Parameters
bytes:byte[]

Doc from org.apache.sshd.common.config.keys.loader.PrivateKeyObfuscator.applyPrivateKeyCipher.

Original bytes

encContext:PrivateKeyEncryptionContext

Doc from org.apache.sshd.common.config.keys.loader.PrivateKeyObfuscator.applyPrivateKeyCipher.

The encryption context

encryptIt:boolean

Doc from org.apache.sshd.common.config.keys.loader.PrivateKeyObfuscator.applyPrivateKeyCipher.

If true then encrypt the original bytes, otherwise decrypt them

Returns:byte[]

Doc from org.apache.sshd.common.config.keys.loader.PrivateKeyObfuscator.applyPrivateKeyCipher.

The result of applying the cipher to the original bytes

Annotations
@Override
Exceptions
GeneralSecurityException:

Doc from org.apache.sshd.common.config.keys.loader.PrivateKeyObfuscator.applyPrivateKeyCipher.

If cannot encrypt/decrypt

IOException:

Doc from org.apache.sshd.common.config.keys.loader.PrivateKeyObfuscator.applyPrivateKeyCipher.

If malformed input

getSupportedKeySizesback to summary
public List<Integer> getSupportedKeySizes()

Implements org.apache.sshd.common.config.keys.loader.PrivateKeyObfuscator.getSupportedKeySizes.

Returns:List<Integer>

Doc from org.apache.sshd.common.config.keys.loader.PrivateKeyObfuscator.getSupportedKeySizes.

A List of the supported key sizes - Note: every call returns a and un-modifiable instance.

Annotations
@Override
resolveEffectiveContextback to summary
public static final PrivateKeyEncryptionContext resolveEffectiveContext(PrivateKeyEncryptionContext encContext)
resolveInitializationVectorLengthback to summary
protected int resolveInitializationVectorLength(PrivateKeyEncryptionContext encContext) throws GeneralSecurityException

Implements abstract org.apache.sshd.common.config.keys.loader.AbstractPrivateKeyObfuscator.resolveInitializationVectorLength.

Annotations
@Override
resolveKeyLengthback to summary
protected int resolveKeyLength(PrivateKeyEncryptionContext encContext) throws GeneralSecurityException

Implements abstract org.apache.sshd.common.config.keys.loader.AbstractPrivateKeyObfuscator.resolveKeyLength.

Annotations
@Override