|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.geant.edugain.base.Request
public abstract class Request
Defines a generic eduGAIN class for requests. The class will be extended depending on the type of request: Authentication, Attributes, Authorization or Home Location.
| Field Summary | |
|---|---|
protected java.lang.String |
cacheReference
An optional parameter including a ResponseID argument of a previous Response. |
protected java.net.URI |
consumerId
The component identifier for the consumer of the request. |
private java.util.Date |
issued
The date the Request was issued. |
protected java.net.URI |
producerId
The component identifier for the producer of the request. |
private java.security.SecureRandom |
random
A secure random number generator |
protected java.lang.String |
requestID
A reference (internally generated by the requester) for this operation to be used in further interactions regarding the request. |
protected java.net.URI |
resource
The URI of the resource the authorisation is requested for. |
private int |
validatedTrust
Deprecated. |
| Constructor Summary | |
|---|---|
Request()
Creates a new instance of a Request. |
|
| Method Summary | |
|---|---|
void |
generateRequestID()
Sets a ramdomly generated reference for this request operation to be used in the inResponseTo field of the corresponding response. |
java.lang.String |
getCacheReference()
Gets the value of the cacheReference field |
java.net.URI |
getConsumerId()
Gets the component identifier for the eduGAIN component consuming this request . |
java.util.Date |
getIssued()
Returns the date this request was issued |
java.net.URI |
getProducerId()
Gets the component identifier for the eduGAIN component producing this request . |
java.lang.String |
getRequestID()
Returns the identifier of the request |
java.net.URI |
getResource()
Gets the URI of the resource whose access originated the operation |
int |
getValidatedTrust()
Deprecated. |
void |
setCacheReference(java.lang.String cref)
Sets a cache reference (this includes a ResponseID argument of a previous AuthNResponse ) |
void |
setConsumerId(java.net.URI consumerId)
Sets the component identifier for the eduGAIN component consuming this request. |
void |
setIssued(java.util.Date issued)
Sets the date this request is being issued (Issue Instant) |
void |
setProducerId(java.net.URI producerId)
Sets the component identifier for the eduGAIN component producing this request. |
void |
setRequestID()
Deprecated. |
void |
setRequestID(java.lang.String id)
Sets a reference for this request externally. |
void |
setResource(java.net.URI res)
The URI of the resource whose access originated the operation |
void |
setValidatedTrust(int validatedTrust)
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.security.SecureRandom random
protected java.lang.String requestID
protected java.net.URI resource
protected java.net.URI producerId
protected java.net.URI consumerId
protected java.lang.String cacheReference
@Deprecated private int validatedTrust
private java.util.Date issued
| Constructor Detail |
|---|
public Request()
| Method Detail |
|---|
@Deprecated public void setRequestID()
inResponseTo field of the corresponding response.
public void generateRequestID()
inResponseTo field of the corresponding response.
public void setRequestID(java.lang.String id)
Sets a reference for this request externally.
WARNING: this method is used only when rebuilding the request. Please never use it with your own IDs!
public java.lang.String getRequestID()
public void setResource(java.net.URI res)
public java.net.URI getResource()
public void setCacheReference(java.lang.String cref)
public java.net.URI getProducerId()
public void setProducerId(java.net.URI producerId)
producerId - An URN following eduGAIN component naming conventions.public java.net.URI getConsumerId()
public void setConsumerId(java.net.URI consumerId)
consumerId - An URN following eduGAIN component naming conventions.public java.lang.String getCacheReference()
@Deprecated public int getValidatedTrust()
@Deprecated public void setValidatedTrust(int validatedTrust)
validatedTrust - If this request is valid or notpublic java.util.Date getIssued()
public void setIssued(java.util.Date issued)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||