Package tigase.auth.credentials.entries
Class MD5UsernamePasswordCredentialsEntry.Encoder
- java.lang.Object
-
- tigase.auth.credentials.entries.MD5UsernamePasswordCredentialsEntry.Encoder
-
- All Implemented Interfaces:
Credentials.Encoder
- Enclosing class:
- MD5UsernamePasswordCredentialsEntry
@Bean(name="MD5-USERNAME-PASSWORD", parent=CredentialsEncoderBean.class, active=false) public static class MD5UsernamePasswordCredentialsEntry.Encoder extends Object implements Credentials.Encoder
-
-
Constructor Summary
Constructors Constructor Description Encoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringencode(BareJID user, String password)Encrypt plaintext password for userStringgetName()Name of mechanism for which encoder works
-
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:Credentials.EncoderName of mechanism for which encoder works- Specified by:
getNamein interfaceCredentials.Encoder- Returns:
- name of mechanism for which encoder works
-
encode
public String encode(BareJID user, String password)
Description copied from interface:Credentials.EncoderEncrypt plaintext password for user- Specified by:
encodein interfaceCredentials.Encoder- Parameters:
user- for which encryptpassword- to encode- Returns:
- encrypted plaintext password for user
-
-