public class Claim
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Claim(Claim claim)
This constructor instantiates a Claim object from another Claim object
|
Claim(ClaimDictionary dictionary, SAMLAttribute samlAttr)
This constructor instantiates a Claim from specified claim dictionary and SAML Attribute
|
Claim(ClaimDictionary dictionary, java.lang.String name, java.lang.String value)
This constructor instantiates a Claim object based on specified uniqueName/value and schema associated with the specified dictionary.
|
Claim(Context context, java.lang.String name, java.lang.String value)
This constructor instantiates a Claim object using specified uniqueName/value and schema from the dictionary associated with the specified context.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Claim claim)
Compares two claims for equality.
|
java.lang.String |
getName()
Return name of a claim
|
ClaimSchema |
getSchema()
Return schema of a claim
|
java.lang.String |
getValue()
Return value of a claim
|
SAMLAttribute |
toSAMLAttribute()
Convert claim to a SAML attribute.
|
java.lang.String |
toString()
Return a string representation of a claim
|
public Claim(Claim claim)
public Claim(ClaimDictionary dictionary, java.lang.String name, java.lang.String value) throws UnknownClaimException, InvalidVirtualClaimException
public Claim(Context context, java.lang.String name, java.lang.String value) throws UnknownClaimException, InvalidVirtualClaimException
public Claim(ClaimDictionary dictionary, SAMLAttribute samlAttr) throws ContextException
ContextException
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(Claim claim)
claim
- Claim to compare againstpublic java.lang.String getName()
public java.lang.String getValue()
public ClaimSchema getSchema()
public SAMLAttribute toSAMLAttribute()