com.sun.identity.liberty.ws.authnsvc.protocol
Class TruncationTransform

java.lang.Object
  extended by com.sun.identity.liberty.ws.authnsvc.protocol.Transform
      extended by 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.


Field Summary
 
Fields inherited from class com.sun.identity.liberty.ws.authnsvc.protocol.Transform
id, LOWERCASE_URI, name, parameters, SELECT_URI, TRUNCATION_URI, UPPERCASE_URI
 
Constructor Summary
TruncationTransform()
          This is the default constructor.
TruncationTransform(int length)
          Constructs TruncationTransform object with length.
 
Method Summary
 String transform(String password)
          Transforms password.
 
Methods inherited from class com.sun.identity.liberty.ws.authnsvc.protocol.Transform
getId, getName, getParameters, setId, setParameters
 

Constructor Detail

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
Method Detail

transform

public String transform(String password)
Transforms password.

Specified by:
transform in class Transform
Parameters:
password - original password
Returns:
transformed password