Skip navigation links


oracle.iam.platform.authz.vo
Class InternalObligation

java.lang.Object
  extended by oracle.iam.platform.authz.vo.InternalObligation


public class InternalObligation
extends java.lang.Object

Represents an Obligation. This class holds obligation name and values. It contains processing for obligations internal to (and understood by) the OES integration layer. Obligations created by external features are marked as such with the flag convertToObligation=true.


Constructor Summary
InternalObligation(java.lang.String s, java.lang.String actionId)
          Constructor.

 

Method Summary
 java.lang.String getName()
          Gets the obligation name
 java.util.List getValues()
          Gets the List of obligation values depending on the obligation name
 boolean isConvertToObligation()
          Gets whether the obligations are created by external features.
static void main(java.lang.String[] args)
           
 void setConvertToObligation(boolean b)
          Obligations created by external features are marked as such with the flag convertToObligation=true.
 java.lang.String toString()
           
 boolean validate(java.lang.String requesterId, java.lang.String targetId)
          Implements obligation checking.

 

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

 

Constructor Detail

InternalObligation

public InternalObligation(java.lang.String s,
                          java.lang.String actionId)
                   throws InitializationErrorException
Constructor.
Parameters:
s - string representation of the obligation
actionId -
Throws:
InitializationErrorException, - if the OIM auhtorization layer has not been initialized.
InitializationErrorException

Method Detail

getName

public java.lang.String getName()
Gets the obligation name
Returns:
the obligation name

getValues

public java.util.List getValues()
Gets the List of obligation values depending on the obligation name
Returns:
the List of obligation values

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception

validate

public boolean validate(java.lang.String requesterId,
                        java.lang.String targetId)
Implements obligation checking. It uses the instance level cache for efficiency just in case this method is called again.
Parameters:
requesterId -
targetId -
Returns:

isConvertToObligation

public boolean isConvertToObligation()
Gets whether the obligations are created by external features.
Returns:

setConvertToObligation

public void setConvertToObligation(boolean b)
Obligations created by external features are marked as such with the flag convertToObligation=true. Sets whether the obligations are created by external features
Parameters:
b -

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Skip navigation links


Copyright © 2010, Oracle and/or its affiliates. All rights reserved.