Package com.adaptris.security.password
Class PbeCrypto
- java.lang.Object
-
- com.adaptris.security.password.PbeCrypto
-
- All Implemented Interfaces:
PasswordCodec
@Deprecated @Removal(version="4.0.0", message="This uses PBEWithSHA1AndDESede which is now cryptographically weak") public class PbeCrypto extends java.lang.Object
Deprecated.deprecated since 3.11.1 since this uses PBEWithSHA1AndDESede which is a weak algorithm.
-
-
Constructor Summary
Constructors Constructor Description PbeCrypto()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
canHandle(java.lang.String type)
Deprecated.Can this implementation handle an encoded password of this type.java.lang.String
decode(java.lang.String encrypted)
InvokesPasswordCodec.decode(String, String)
with null as the charset parameterjava.lang.String
decode(java.lang.String encrypted, java.lang.String charset)
Deprecated.Show the plain text.java.lang.String
encode(java.lang.String plainText)
InvokesPasswordCodec.encode(String, String)
with null as the charset parameterjava.lang.String
encode(java.lang.String plainText, java.lang.String charset)
Deprecated.Obfuscate the plain text.protected java.lang.String
getEncodingToUse(java.lang.String encoding)
-
-
-
Constructor Detail
-
PbeCrypto
public PbeCrypto() throws PasswordException
Deprecated.- Throws:
PasswordException
-
-
Method Detail
-
canHandle
public boolean canHandle(java.lang.String type)
Deprecated.Description copied from interface:PasswordCodec
Can this implementation handle an encoded password of this type.- Parameters:
type
- the type- Returns:
- true or false.
-
decode
public java.lang.String decode(java.lang.String encrypted, java.lang.String charset) throws PasswordException
Deprecated.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
public java.lang.String encode(java.lang.String plainText, java.lang.String charset) throws PasswordException
Deprecated.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
-
decode
public java.lang.String decode(java.lang.String encrypted) throws PasswordException
Description copied from interface:PasswordCodec
InvokesPasswordCodec.decode(String, String)
with null as the charset parameter- Specified by:
decode
in interfacePasswordCodec
- Throws:
PasswordException
- See Also:
PasswordCodec.decode(String, String)
-
encode
public java.lang.String encode(java.lang.String plainText) throws PasswordException
Description copied from interface:PasswordCodec
InvokesPasswordCodec.encode(String, String)
with null as the charset parameter- Specified by:
encode
in interfacePasswordCodec
- Throws:
PasswordException
-
getEncodingToUse
protected java.lang.String getEncodingToUse(java.lang.String encoding)
-
-