public class MicrosoftCrypto
extends java.lang.Object
Constructor and Description |
---|
MicrosoftCrypto() |
Modifier and Type | Method and Description |
---|---|
boolean |
canHandle(java.lang.String type)
Can this implementation handle an encoded password of this type.
|
java.lang.String |
decode(java.lang.String encrypted)
Invokes
PasswordCodec.decode(String, String) with null as the charset parameter |
java.lang.String |
decode(java.lang.String encrypted,
java.lang.String charset)
Show the plain text.
|
java.lang.String |
encode(java.lang.String plainText)
Invokes
PasswordCodec.encode(String, String) with null as the charset parameter |
java.lang.String |
encode(java.lang.String plainText,
java.lang.String charset)
Obfuscate the plain text.
|
protected java.lang.String |
getEncodingToUse(java.lang.String encoding) |
public MicrosoftCrypto() throws PasswordException
PasswordException
public boolean canHandle(java.lang.String type)
PasswordCodec
type
- the typepublic java.lang.String decode(java.lang.String encrypted, java.lang.String charset) throws PasswordException
PasswordCodec
encrypted
- the encrypted passwordcharset
- the character set that should be used to create the
resulting plain text password, if null uses UTF-8PasswordException
public java.lang.String encode(java.lang.String plainText, java.lang.String charset) throws PasswordException
PasswordCodec
plainText
- the text to obfuscatecharset
- the character set that should be used to create the
resulting plain text password, if null uses UTF-8PasswordException
public java.lang.String decode(java.lang.String encrypted) throws PasswordException
PasswordCodec
PasswordCodec.decode(String, String)
with null as the charset parameterdecode
in interface PasswordCodec
PasswordException
PasswordCodec.decode(String, String)
public java.lang.String encode(java.lang.String plainText) throws PasswordException
PasswordCodec
PasswordCodec.encode(String, String)
with null as the charset parameterencode
in interface PasswordCodec
PasswordException
protected java.lang.String getEncodingToUse(java.lang.String encoding)