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.ObjectDeprecated.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 booleancanHandle(java.lang.String type)Deprecated.Can this implementation handle an encoded password of this type.java.lang.Stringdecode(java.lang.String encrypted)InvokesPasswordCodec.decode(String, String)with null as the charset parameterjava.lang.Stringdecode(java.lang.String encrypted, java.lang.String charset)Deprecated.Show the plain text.java.lang.Stringencode(java.lang.String plainText)InvokesPasswordCodec.encode(String, String)with null as the charset parameterjava.lang.Stringencode(java.lang.String plainText, java.lang.String charset)Deprecated.Obfuscate the plain text.protected java.lang.StringgetEncodingToUse(java.lang.String encoding)
-
-
-
Constructor Detail
-
PbeCrypto
public PbeCrypto() throws PasswordExceptionDeprecated.- Throws:
PasswordException
-
-
Method Detail
-
canHandle
public boolean canHandle(java.lang.String type)
Deprecated.Description copied from interface:PasswordCodecCan 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 PasswordExceptionDeprecated.Description copied from interface:PasswordCodecShow 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 PasswordExceptionDeprecated.Description copied from interface:PasswordCodecObfuscate 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 PasswordExceptionDescription copied from interface:PasswordCodecInvokesPasswordCodec.decode(String, String)with null as the charset parameter- Specified by:
decodein interfacePasswordCodec- Throws:
PasswordException- See Also:
PasswordCodec.decode(String, String)
-
encode
public java.lang.String encode(java.lang.String plainText) throws PasswordExceptionDescription copied from interface:PasswordCodecInvokesPasswordCodec.encode(String, String)with null as the charset parameter- Specified by:
encodein interfacePasswordCodec- Throws:
PasswordException
-
getEncodingToUse
protected java.lang.String getEncodingToUse(java.lang.String encoding)
-
-