|
|||||||||
| 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. |
protected java.util.Date |
issued
The date the Request was issued. |
protected org.apache.log4j.Logger |
log
Generic logger attribute. |
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. |
protected java.lang.Object |
samlObject
The OpenSAML object associated with this response. |
protected boolean |
strictMode
According to the eduGAIN Trust Fabric: |
| 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 |
boolean |
isStrict()
Check if this Response is in strict mode. |
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(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 |
setStrict(boolean mode)
Set this Response in strict mode. |
java.lang.String |
toString()
Marshalls this Request into its string representation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private java.security.SecureRandom random
protected org.apache.log4j.Logger log
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
protected java.util.Date issued
protected java.lang.Object samlObject
protected boolean strictMode
According to the eduGAIN Trust Fabric:
XML Signatures MUST be used in the following SAML constructs:
AuthenticationStatement
and (optionally) several SAML AttributeStatement in response
to an eduGAIN AuthenticationRequest.XML Signatures SHOULD be used in the following SAML constructs:
AttributeStatement in
response to an eduGAIN AttributeRequest.
| Constructor Detail |
|---|
public Request()
| Method Detail |
|---|
public boolean isStrict()
public void setStrict(boolean mode)
mode - True if this Response should be strict, False else.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()
public java.util.Date getIssued()
public void setIssued(java.util.Date issued)
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 | ||||||||