Package com.adobe.idp
Classpublic final class Context
InheritanceContext Inheritance Object

General IDP context class.

Propagates crucial information among IDP components, and is used in many of the product APIs. By convention, it appears as the last parameter in any method that propagates it.

Currently, the context propagates:

The context is designed so that it can be serialized to an older version of itself and back without losing any information.



Public Methods
 MethodDefined by
  
Default constructor.
Context
  
Context create(byte[] buf)
[static] Instantiates a context from a byte array.
Context
  
Retrieves the authenticated user.
Context
  
Provides a date indicating when this Context will expire.
Context
  
String getRequestId()
Retrieves the request ID.
Context
  
Retrieves the user's assertion string.
Context
  
void initPrincipal(AuthResult authResult)
Initializes the Context object's Principal (the authenticated user).
Context
  
void initRequestId(String requestId)
Initializes the request ID.
Context
  
boolean isComplete()
Context
  
byte[] toByteArray()
Converts a context to a byte array.
Context
  
String toString()
Retrieves a printable rendition of the context.
Context
Constructor Detail
Context()
public Context()

Default constructor.

Method Detail
create()
public static Context create(byte[] buf)

Instantiates a context from a byte array. This can be useful when using IDL-defined CORBA interfaces.

Parameters

buf — The byte array used to create the context.

Returns
The context.
getAuthenticatedUser() 
public User getAuthenticatedUser()

Retrieves the authenticated user.

Returns
getExpirationHint() 
public Date getExpirationHint()

Provides a date indicating when this Context will expire. There is no guarantee that the value is accurate, but it will be no later than the actual expiration date.

Returns
The latest possible expiration date.
getRequestId() 
public String getRequestId()

Retrieves the request ID.

Returns
The request ID.
getUserAssertion() 
public String getUserAssertion()

Retrieves the user's assertion string.

Returns
The user's assertion string.
initPrincipal() 
public void initPrincipal(AuthResult authResult)

Initializes the Context object's Principal (the authenticated user).

Parameters

authResult — The information used to set the authenticated user's information.

initRequestId() 
public void initRequestId(String requestId)

Initializes the request ID.

Parameters

requestId — The request ID to be initialized.

isComplete() 
public boolean isComplete()

Returns
toByteArray() 
public byte[] toByteArray()

Converts a context to a byte array. This can be useful when using IDL-defined CORBA interfaces.

Returns
A byte array containing the context information.
toString() 
public String toString()

Retrieves a printable rendition of the context.

Returns




 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/javadoc/com/adobe/idp/Context.html