Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Platform Security Services
11g Release 1 (11.1.1)

E14650-06


oracle.security.idm.IdentityContext
Class Claim

java.lang.Object
  extended by oracle.security.idm.IdentityContext.Claim

All Implemented Interfaces:
java.io.Serializable

public class Claim
extends java.lang.Object
implements java.io.Serializable

This class implements the runtime claim.

See Also:
Serialized Form

Constructor Summary
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.

 

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

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Constructor Detail

Claim

public Claim(Claim claim)
This constructor instantiates a Claim object from another Claim object

Claim

public Claim(ClaimDictionary dictionary,
             java.lang.String name,
             java.lang.String value)
      throws UnknownClaimException,
             InvalidVirtualClaimException
This constructor instantiates a Claim object based on specified uniqueName/value and schema associated with the specified dictionary.
Throws:
UnknownClaimException
InvalidVirtualClaimException

Claim

public Claim(Context context,
             java.lang.String name,
             java.lang.String value)
      throws UnknownClaimException,
             InvalidVirtualClaimException
This constructor instantiates a Claim object using specified uniqueName/value and schema from the dictionary associated with the specified context.
Throws:
UnknownClaimException
InvalidVirtualClaimException

Claim

public Claim(ClaimDictionary dictionary,
             SAMLAttribute samlAttr)
      throws ContextException
This constructor instantiates a Claim from specified claim dictionary and SAML Attribute
Throws:
ContextException

Method Detail

toString

public java.lang.String toString()
Return a string representation of a claim
Overrides:
toString in class java.lang.Object
Returns:
A string representation of a claim

equals

public boolean equals(Claim claim)
Compares two claims for equality. The claims are equal if and only if both claims have identical schemas and values.
Parameters:
claim - Claim to compare against
Returns:
True if the two claims are equal

getName

public java.lang.String getName()
Return name of a claim
Returns:
Claim name

getValue

public java.lang.String getValue()
Return value of a claim
Returns:
Claim value

getSchema

public ClaimSchema getSchema()
Return schema of a claim
Returns:
Claim schema

toSAMLAttribute

public SAMLAttribute toSAMLAttribute()
Convert claim to a SAML attribute.
Returns:
String containing claim as a SAML Attribute

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Platform Security Services
11g Release 1 (11.1.1)

E14650-06


Copyright © 2013 Oracle. All rights reserved.