/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2006 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: Transform.java,v 1.2 2008/06/25 05:47:08 qcheng Exp $
* Portions Copyrighted 2014 ForgeRock AS.
*/
/**
* The <code>Transform</code> class represents 'Transform' element in
* 'PasswordTransforms' element defined in Authentication Service schema.
*
* @supported.all.api
* @deprecated since 12.0.0
*/
public abstract class Transform {
/**
* Truncation Transform name.
*/
/**
* Lowercase Transform name.
*/
/**
* Uppercase Transform name.
*/
/**
* Select Transform name.
*/
"com.sun.identity.liberty.ws.authnsvc.transformClasses";
static {
while(stz.hasMoreTokens()) {
"Transform.static: add " + token);
}
} else {
"Transform.static: Invalid syntax " +
"for Transform Classes List: " +
token);
}
}
}
}
}
throw new AuthnSvcException("missingNameTF");
}
try {
} catch (Throwable t) {
"Transform.getTransform class = " + className, t);
}
}
}
tf = new TruncationTransform();
tf = new LowercaseTransform();
tf = new UppercaseTransform();
tf = new SelectTransform();
} else {
}
}
for(int i = 0; i < length; i++) {
if (parameters == null) {
parameters = new ArrayList();
}
} else {
throw new AuthnSvcException("invalidChildTF");
}
}
}
return tf;
}
/**
* Transforms password.
* @param password original password
* @return transformed password
*/
/**
* Returns value of 'name' attribute.
* @return value of 'name' attribute
*/
{
return name;
}
/**
* Returns value of 'id' attribute.
* @return value of 'id' attribute
* @see #setId(String)
*/
{
return id;
}
/**
* Returns a list of 'Parameter' child element.
* @return a list of 'Parameter' child element
* @see #setParameters(List)
*/
{
return parameters;
}
/**
* Sets value of 'id' attribute.
* @param id value of 'id' attribute
* @see #getId()
*/
{
}
/**
* Sets a list of 'Parameter' child element.
* @param parameters a list of 'Parameter' child element
* @see #getParameters()
*/
{
this.parameters = parameters;
}
/**
* Converts this to <code>org.w3c.dom.Element</code> and add to
* parent PasswordTransforms Element.
* @param ptE parent PasswordTransforms Element
* @exception AuthnSvcException if there is 'name' attribute is empty
*/
{
throw new AuthnSvcException("missingNameTF");
}
}
}
}
}
}