Package com.sun.identity.wss.trust
Class ClaimType
- java.lang.Object
-
- com.sun.identity.wss.trust.ClaimType
-
public class ClaimType extends Object
This classClaimTyperepresents Identity ClaimType Element.
-
-
Field Summary
Fields Modifier and Type Field Description static StringCLAIMS_NSstatic StringIDENTITY_NS
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()Returns the name for the claim.booleanisOptional()Returns true if the claim is optional.voidsetName(String name)Sets the name of the claim.voidsetOptional(boolean optional)Sets the optional flag.StringtoXMLString()Returns to an XML String for the ClaimType.
-
-
-
Field Detail
-
IDENTITY_NS
public static final String IDENTITY_NS
- See Also:
- Constant Field Values
-
CLAIMS_NS
public static final String CLAIMS_NS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ClaimType
public ClaimType(String nameSpaceURI)
Constructor- Parameters:
nameSpaceURI- the name space for the claim type.
-
ClaimType
public ClaimType(Element element) throws WSTException
Constructor- Parameters:
element- the claimtype element- Throws:
WSTException
-
-
Method Detail
-
getName
public String getName()
Returns the name for the claim.- Returns:
- the name of the claim.
-
setName
public void setName(String name)
Sets the name of the claim.- Parameters:
name- name of the claim.
-
isOptional
public boolean isOptional()
Returns true if the claim is optional.- Returns:
- true if the clam is optional.
-
setOptional
public void setOptional(boolean optional)
Sets the optional flag.- Parameters:
optional- true if the claim is optional.
-
toXMLString
public String toXMLString()
Returns to an XML String for the ClaimType.- Returns:
- the XML String for the ClaimType.
-
-