Skip navigation links

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


oracle.security.idaas.rest.common
Class SecurityContext

java.lang.Object
  extended by oracle.security.idaas.rest.common.SecurityContext


public class SecurityContext
extends java.lang.Object

This class has two SubjectID: Caller and Filter Subject. Filter Subject typically represents Client Application Identity. Caller Subject typiclaly represent (human) User Identity.

These two subjects may be authenticated through two different mechanisms.

An object of this class is intentionally immutable.


Constructor Summary
SecurityContext(java.lang.String serviceDomain, SubjectID caller, SubjectID filterSubject)
          Constructor of passing, service domain, caller subject and filter subject
SecurityContext(SubjectID caller, SubjectID filterSubject)
          Constructor of passing caller subject and filter subject

 

Method Summary
 SubjectID getCaller()
           
 SubjectID getFilterSubject()
           
 java.lang.String getServiceDomain()
          return service domain from HTTP request
This getter method may throw IllegalStateException, if service domain is not initialized.

 

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

 

Constructor Detail

SecurityContext

public SecurityContext(SubjectID caller,
                       SubjectID filterSubject)
Constructor of passing caller subject and filter subject
Parameters:
caller - - representing human user subject id
filterSubject - - representing client application subject id

SecurityContext

public SecurityContext(java.lang.String serviceDomain,
                       SubjectID caller,
                       SubjectID filterSubject)
Constructor of passing, service domain, caller subject and filter subject
Parameters:
serviceDomain - - respresenting service domain name
caller - - representing human user subject id
filterSubject - - representing client application subject id

Method Detail

getServiceDomain

public java.lang.String getServiceDomain()
return service domain from HTTP request
This getter method may throw IllegalStateException, if service domain is not initialized.
Returns:
service domain from HTTP request

getCaller

public SubjectID getCaller()

getFilterSubject

public SubjectID getFilterSubject()

Skip navigation links

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