com.sun.identity.liberty.ws.authnsvc.protocol
Class TruncationTransform
java.lang.Object
com.sun.identity.liberty.ws.authnsvc.protocol.Transform
com.sun.identity.liberty.ws.authnsvc.protocol.TruncationTransform
public class TruncationTransform
- extends Transform
The TruncationTransform class represents a
Transform that remove all subsequent characters after a given
number of characters have been obtained.
TruncationTransform
public TruncationTransform()
- This is the default constructor.
TruncationTransform
public TruncationTransform(int length)
- Constructs
TruncationTransform object with length.
- Parameters:
length - all subsequent characters after the length will be
removed
transform
public String transform(String password)
- Transforms password.
- Specified by:
transform in class Transform
- Parameters:
password - original password
- Returns:
- transformed password