|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.geant.edugain.base.Response
net.geant.edugain.base.AuthorizationResponse
public class AuthorizationResponse
A response containing an authorisation decision according to a previously issued AuthZReq. It must contain a boolean value specifying the decision and may include data to be used by the resource for whatever purpose (personalisation, for example) and/or an explanation about the returned decision, according to service and privacy policies.
This class extends Response.
| Field Summary | |
|---|---|
protected java.util.ArrayList<java.lang.String> |
actions
A list of actions that the user is authorized to perform. |
private org.apache.log4j.Logger |
log
|
protected java.net.URI |
resource
The URI of the resource the authorisation is resolved for. |
| Constructor Summary | |
|---|---|
AuthorizationResponse()
Creates a new instance of AuthorizationResponse |
|
AuthorizationResponse(org.opensaml.saml2.core.Response rsp)
Creates a new instance of AuthorizationResponse, filling the fields with the Response data received. |
|
AuthorizationResponse(org.opensaml.SAMLResponse rsp)
Creates a new instance of AuthorizationResponse, filling the fields with the SAMLResponse data received. |
|
| Method Summary | |
|---|---|
void |
addAction(java.lang.String action)
Adds the specified action to the current list. |
void |
fromSAML(org.opensaml.saml2.core.Response response)
Fill this AuthorizationResponse with a SAML 2 Response |
void |
fromSAML(org.opensaml.SAMLResponse response)
Fill this AuthorizationResponse with a SAMLResponse. |
java.util.ArrayList<java.lang.String> |
getActions()
Gets the list of actions accepted for this response. |
java.net.URI |
getResource()
Gets the resource for this AuthorizationResponse. |
void |
removeAction(java.lang.String action)
Removes the specified action from the current list. |
void |
setResource(java.lang.String r)
Sets the resource for this AuthorizationResponse. |
void |
setResource(java.net.URI r)
Sets the resource for this AuthorizationResponse. |
java.lang.Object |
toSAML()
Converts this response object into a SAML response. |
private org.opensaml.SAMLResponse |
toSAML1(int minor)
Map the current AuthorizationResponse to a SAML 1.X response. |
private org.opensaml.saml2.core.Response |
toSAML2(int minor)
Map the current AuthorizationResponse to a SAML 2.X response. |
| Methods inherited from class net.geant.edugain.base.Response |
|---|
fromInputStream, generateResponseID, getAdditionalData, getConsumerId, getInResponseTo, getInterfaces, getIssued, getNotBefore, getNotOnOrAfter, getProducerId, getResponseID, getResult, getResultMessage, getSigningProperties, getValidatedTrust, setAdditionalData, setConsumerId, setInResponseTo, setInterfaces, setIssued, setNotBefore, setNotOnOrAfter, setProducerId, setResponseID, setResponseID, setResult, setResultMessage, setSigningProperties, setValidatedTrust, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private org.apache.log4j.Logger log
protected java.net.URI resource
protected java.util.ArrayList<java.lang.String> actions
| Constructor Detail |
|---|
public AuthorizationResponse()
public AuthorizationResponse(org.opensaml.SAMLResponse rsp)
throws BaseException
rsp - The original SAML response.
BaseException
public AuthorizationResponse(org.opensaml.saml2.core.Response rsp)
throws BaseException
rsp - The original SAML 2 response.
BaseException| Method Detail |
|---|
public java.net.URI getResource()
public void setResource(java.net.URI r)
r - The resource field to use.
public void setResource(java.lang.String r)
throws BaseException
r - A string representation of an URI.
BaseExceptionpublic void addAction(java.lang.String action)
action - The action to add.public java.util.ArrayList<java.lang.String> getActions()
public void removeAction(java.lang.String action)
action - The action to remove.
public void fromSAML(org.opensaml.SAMLResponse response)
throws BaseException
//Response/Status/StatusDetail,
AdditionalData is currently unsupported.
response - The SAML response.
BaseException
public void fromSAML(org.opensaml.saml2.core.Response response)
throws BaseException
BaseException
public java.lang.Object toSAML()
throws BaseException
SAMLResponse or a
Response, depending on the SAML version
eduGAIN is configured to use.
BaseException
private org.opensaml.SAMLResponse toSAML1(int minor)
throws BaseException
minor - The minor version number (can be 0 or 1).
BaseException
private org.opensaml.saml2.core.Response toSAML2(int minor)
throws BaseException
minor - The minor version number (can be 0 or 1).
BaseException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||