Package com.adaptris.security.password
Class SeededAesPbeCrypto
java.lang.Object
com.adaptris.security.password.SeededAesPbeCrypto
- All Implemented Interfaces:
PasswordCodec
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Can this implementation handle an encoded password of this type.InvokesPasswordCodec.decode(String, String)
with null as the charset parameterShow the plain text.InvokesPasswordCodec.encode(String, String)
with null as the charset parameterObfuscate the plain text.protected static String
fromProperties
(String key, Properties p) protected String
getEncodingToUse
(String encoding) Location of the seed file used to to do the encryption.void
setSeedFile
(String seedFile) Location of the seed file used to to do the encryption.
-
Field Details
-
SYSTEM_PROPERTY
- See Also:
-
-
Constructor Details
-
SeededAesPbeCrypto
-
SeededAesPbeCrypto
public SeededAesPbeCrypto()
-
-
Method Details
-
canHandle
Description copied from interface:PasswordCodec
Can this implementation handle an encoded password of this type.- Parameters:
type
- the type- Returns:
- true or false.
-
decode
Description copied from interface:PasswordCodec
Show the plain text.- Parameters:
encrypted
- the encrypted passwordcharset
- the character set that should be used to create the resulting plain text password, if null uses UTF-8- Returns:
- the plain text password
- Throws:
PasswordException
-
encode
Description copied from interface:PasswordCodec
Obfuscate the plain text.- Parameters:
plainText
- the text to obfuscatecharset
- the character set that should be used to create the resulting plain text password, if null uses UTF-8- Returns:
- the obfuscated text.
- Throws:
PasswordException
-
fromProperties
- Throws:
Exception
-
getSeedFile
Location of the seed file used to to do the encryption. Should be left empty if the system property interlok.password.seed is used. -
setSeedFile
Location of the seed file used to to do the encryption. Should be left empty if the system property interlok.password.seed is used. -
decode
Description copied from interface:PasswordCodec
InvokesPasswordCodec.decode(String, String)
with null as the charset parameter- Specified by:
decode
in interfacePasswordCodec
- Throws:
PasswordException
- See Also:
-
encode
Description copied from interface:PasswordCodec
InvokesPasswordCodec.encode(String, String)
with null as the charset parameter- Specified by:
encode
in interfacePasswordCodec
- Throws:
PasswordException
-
getEncodingToUse
-