|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.geant.edugain.base.Request
net.geant.edugain.base.AuthorizationRequest
public class AuthorizationRequest
A request for an authorisation decision. It must contain the resource identifier and the attributes collected for the requesting entity, and may include references to the policies to be applied.
This class extends Request.
| Field Summary | |
|---|---|
protected java.util.ArrayList<java.lang.String> |
actions
An identifier for the action the requester is willing to perform on the resource. |
private java.net.URI |
attributeAuthority
An optional URI of an eduGAIN instance that can help in making the authorisation decision by providing additional attributes. |
private java.util.ArrayList<AttributeValues> |
attributeValueList
A list of the attributes (as established by the authentication procedures) provided by and/or obtained for the element requesting the authorisation. |
private java.lang.String |
homeSite
Deprecated. |
private org.apache.log4j.Logger |
log
|
protected java.util.ArrayList<java.lang.String> |
policyReference
An optional list of policy references to be applied in the decision. |
protected java.net.URI |
recipient
Deprecated. |
protected java.lang.String |
subjectHandle
The identification string obtained upon the last successful authentication of the subject requesting access to the resource. |
| Fields inherited from class net.geant.edugain.base.Request |
|---|
cacheReference, consumerId, producerId, requestID, resource |
| Constructor Summary | |
|---|---|
AuthorizationRequest()
Creates a new instance of AuthorizationRequest |
|
AuthorizationRequest(org.opensaml.saml1.core.RequestAbstractType request)
Creates a new instance of AuthorizationRequest, filling the fields with the SAML 2 Request data received. |
|
AuthorizationRequest(org.opensaml.SAMLRequest request)
Creates a new instance of AuthorizationRequest, filling the fields with the SAMLRequest data received. |
|
| Method Summary | |
|---|---|
void |
addAction(java.lang.String action)
Adds the specified action to the current list. |
void |
fromSAML(org.opensaml.saml1.core.RequestAbstractType request)
Fill this AuthorizationRequest from a SAML 2 Request |
void |
fromSAML(org.opensaml.SAMLRequest request)
Fill this AuthorizationRequest from a SAMLRequest |
java.util.ArrayList<java.lang.String> |
getActions()
Gets the list of actions for this request. |
java.net.URI |
getAttributeAuthority()
Returns the attribute authority |
java.util.ArrayList<AttributeValues> |
getAttributeValueList()
Gets the values for the attribute-value pair list |
java.lang.String |
getHomeSite()
Deprecated. |
java.util.ArrayList<java.lang.String> |
getPolicyReference()
Gets the list of policy references |
java.net.URI |
getRecipient()
Deprecated. |
java.lang.String |
getSubjectHandle()
Gets the value of the SubjectHandle |
void |
removeAction(java.lang.String action)
Removes the specified action from the current list. |
void |
setAttributeAuthority(java.net.URI attributeAuthority)
Sets the attribute authority |
void |
setAttributeValueList(java.util.ArrayList<AttributeValues> attributeValueList)
Sets the list of elements - each of them corresponding to one attribute that the identity is willing to deliver upon successful authentication |
void |
setHomeSite(java.lang.String homeSite)
Deprecated. |
void |
setPolicyReference(java.util.ArrayList<java.lang.String> polRef)
Sets the list of policy references |
void |
setRecipient(java.net.URI recip)
Deprecated. |
void |
setSubjectHandle(java.lang.String handle)
Sets the subject handle |
java.lang.Object |
toSAML()
Converts the eduGAIN AuthorizationRequest object into a SAML request. |
private org.opensaml.SAMLRequest |
toSAML1(int minor)
Map the current AuthorizationRequest to a SAML 1.X response. |
private org.opensaml.saml2.core.RequestAbstractType |
toSAML2(int minor)
Map the current AuthorizationRequest to a SAML 2.X response. |
| Methods inherited from class net.geant.edugain.base.Request |
|---|
generateRequestID, getCacheReference, getConsumerId, getIssued, getProducerId, getRequestID, getResource, getValidatedTrust, setCacheReference, setConsumerId, setIssued, setProducerId, setRequestID, setRequestID, setResource, setValidatedTrust |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.ArrayList<java.lang.String> actions
An identifier for the action the requester is willing to perform on the resource. A string from a controlled vocabulary (see note below) and/or a formally defined URN can be used as value.
Note: actions as described here are meaningful in the corresponding application context, and thus are transparent to the eduGAIN infrastructure itself. User applications may establish their own sets of them, by means of multi- or bi-lateral agreements, requirements in the framework of policy management authorities, or even official standards where applicable.
private java.util.ArrayList<AttributeValues> attributeValueList
@Deprecated protected java.net.URI recipient
@Deprecated private java.lang.String homeSite
protected java.lang.String subjectHandle
private java.net.URI attributeAuthority
protected java.util.ArrayList<java.lang.String> policyReference
An optional list of policy references to be applied in the decision. As
in the action, the values can be strings from a
controlled vocabulary and/or formally defined URNs.
private org.apache.log4j.Logger log
| Constructor Detail |
|---|
public AuthorizationRequest()
public AuthorizationRequest(org.opensaml.SAMLRequest request)
throws BaseException
request - The original SAML request.
BaseException
public AuthorizationRequest(org.opensaml.saml1.core.RequestAbstractType request)
throws BaseException
request - The original SAML request.
BaseException| Method Detail |
|---|
public void addAction(java.lang.String action)
public java.util.ArrayList<java.lang.String> getActions()
public void removeAction(java.lang.String action)
action - The action to remove.public java.util.ArrayList<AttributeValues> getAttributeValueList()
public void setAttributeValueList(java.util.ArrayList<AttributeValues> attributeValueList)
@Deprecated public void setRecipient(java.net.URI recip)
@Deprecated public java.net.URI getRecipient()
public void setSubjectHandle(java.lang.String handle)
public java.lang.String getSubjectHandle()
public void setPolicyReference(java.util.ArrayList<java.lang.String> polRef)
public java.util.ArrayList<java.lang.String> getPolicyReference()
public java.net.URI getAttributeAuthority()
public void setAttributeAuthority(java.net.URI attributeAuthority)
@Deprecated public java.lang.String getHomeSite()
@Deprecated public void setHomeSite(java.lang.String homeSite)
public void fromSAML(org.opensaml.SAMLRequest request)
throws BaseException
AuthorizationRequest from a SAMLRequest
request - The SAMLRequest
BaseException
public void fromSAML(org.opensaml.saml1.core.RequestAbstractType request)
throws BaseException
AuthorizationRequest from a SAML 2 Request
request - The SAML 2 Request
BaseException
public java.lang.Object toSAML()
throws BaseException
SAMLRequest or a
RequestAbstractType, depending on the SAML version
eduGAIN is configured to use.
BaseException
private org.opensaml.SAMLRequest toSAML1(int minor)
throws BaseException
minor - The minor version number (can be 0 or 1).
BaseException
private org.opensaml.saml2.core.RequestAbstractType 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 | ||||||||