|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.adobe.idp.Context
public final class Context
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.
Constructor Summary | |
---|---|
Context()
Default constructor. |
Method Summary | |
---|---|
static Context |
create(byte[] buf)
Instantiates a context from a byte array. |
User |
getAuthenticatedUser()
Retrieves the authenticated user. |
java.util.Date |
getExpirationHint()
Provides a date indicating when this Context will expire. |
java.lang.String |
getRequestId()
Retrieves the request ID. |
java.lang.String |
getUserAssertion()
Retrieves the user's assertion string. |
void |
initPrincipal(AuthResult authResult)
Initializes the Context object's Principal (the authenticated user). |
void |
initRequestId(java.lang.String requestId)
Initializes the request ID. |
boolean |
isComplete()
|
byte[] |
toByteArray()
Converts a context to a byte array. |
java.lang.String |
toString()
Retrieves a printable rendition of the context. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Context()
Method Detail |
---|
public static Context create(byte[] buf)
buf
- The byte array used to create the context.
public byte[] toByteArray()
public void initPrincipal(AuthResult authResult)
Context
object's Principal
(the authenticated user).
This method should be called to set the authenticated user in the Context
object.
The only way to get an AuthResult
is by calling the authenticate
method in the
AuthenticationManagerServiceClient
class.
authResult
- The information used to set the authenticated user's information.public boolean isComplete()
public User getAuthenticatedUser()
public java.util.Date getExpirationHint()
Context
will expire. There is no guarantee
that the value is accurate, but it will be no later than the actual expiration date.
public java.lang.String getUserAssertion()
public void initRequestId(java.lang.String requestId)
requestId
- The request ID to be initialized.public java.lang.String getRequestId()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |