Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Access Management Mobile and Social


oracle.security.idaas.rest.common
Class SubjectID<V>

java.lang.Object
  extended by oracle.security.idaas.rest.common.SubjectID<V>


public class SubjectID<V>
extends java.lang.Object

SubjectID represents unique opaque value, which identifies the client or user identity and can be used to test on a particular subject identity has a resource privilege.

Variant types of SubjectID includes token and usercredential (e.g. uid/passwd).

This class is intended to be immutable.


Nested Class Summary
static class SubjectID.Type
          Enumeration for SubjectID Type.

 

Constructor Summary
SubjectID(SubjectID.Type type, V value)
          Default Token Constructor with subjectid type and value

 

Method Summary
 java.lang.String getPrincipal()
          getPrincipal returns the principal of subject identifier from SubjectID.
 SubjectID.Type getType()
          getType returns SubjectIdType from SubjectId.
 V getValue()
          getValue returns the value of subject identifier from SubjectID.
 java.lang.String toString()
          The value returned by this "toString()" method may change in future.

 

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

 

Constructor Detail

SubjectID

public SubjectID(SubjectID.Type type,
                 V value)
Default Token Constructor with subjectid type and value

Method Detail

getType

public SubjectID.Type getType()
getType returns SubjectIdType from SubjectId.
Returns:
SubjectIdType that is one of TOKEN or UID

getValue

public V getValue()
getValue returns the value of subject identifier from SubjectID.
Returns:
the value of subject identifier.

getPrincipal

public java.lang.String getPrincipal()
getPrincipal returns the principal of subject identifier from SubjectID.
Returns:
the principal of subject identifier.

toString

public java.lang.String toString()
The value returned by this "toString()" method may change in future. It is mainly for informal debugging.
Overrides:
toString in class java.lang.Object
Returns:

Skip navigation links

Copyright (c) 2012,
Oracle All Rights Reserved.
Built 06/05/2012 17:18:07 PDT