|
|||||||||
| 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.AttributeRequest
public class AttributeRequest
A request for attributes pertaining to a certain subject. It must contain the handle corresponding to the subject, a list of attribute identifiers requested, and a resource/service identifier.
This class extends Request.
| Field Summary | |
|---|---|
protected java.util.ArrayList<javax.xml.namespace.QName> |
attributeNameList
A list of the attribute names whose values are requested. |
protected java.lang.String |
homeSite
The home site of the user where the request is going to be solved. |
protected java.net.URI |
referred
The URI from where the requester has been redirected to this service. |
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, issued, log, producerId, requestID, resource, samlObject, strictMode, validator |
| Constructor Summary | |
|---|---|
AttributeRequest()
Creates a new instance of AttributeRequest |
|
AttributeRequest(boolean strict)
Creates a new instance of AttributeRequest |
|
AttributeRequest(org.w3c.dom.Element element)
Creates a new instance of AttributeRequest, filling the fields with the SAML document from an Element. |
|
AttributeRequest(org.w3c.dom.Element element,
boolean strict)
Creates a new instance of AttributeRequest, filling the fields with the SAML document from an Element. |
|
AttributeRequest(java.io.InputStream stream)
Creates a new instance of AttributeRequest, filling the fields with the SAML document from an InputStream. |
|
AttributeRequest(java.io.InputStream stream,
boolean strict)
Creates a new instance of AttributeRequest, filling the fields with the SAML document from an InputStream. |
|
AttributeRequest(org.opensaml.saml2.core.RequestAbstractType request)
Creates a new instance of AttributeRequest, filling the fields with the SAML 2 Request data received. |
|
AttributeRequest(org.opensaml.SAMLRequest request)
Creates a new instance of AttributeRequest, filling the fields with the SAMLRequest data received. |
|
AttributeRequest(org.opensaml.SAMLRequest request,
boolean strict)
Creates a new instance of AttributeRequest, filling the fields with the SAMLRequest data received |
|
| Method Summary | |
|---|---|
void |
addAttributeName(java.lang.String namespace,
java.lang.String name)
Adds the specified action to the current list. |
void |
fromSAML(org.opensaml.saml2.core.RequestAbstractType request)
Fill this AttributeRequest from a SAML 2 Request |
void |
fromSAML(org.opensaml.SAMLRequest request)
Fill this AttributeRequest from a SAMLRequest. |
java.util.ArrayList<javax.xml.namespace.QName> |
getAttributeNameList()
Get values for the AttributeNameList |
java.lang.String |
getHomeSite()
Gets the value of the HomeSite |
java.net.URI |
getReferred()
Gets the URI from where the requester was redirected to this service |
java.lang.String |
getSubjectHandle()
Gets the value of the SubjectHandle |
void |
setAttributeNameList(java.util.ArrayList<javax.xml.namespace.QName> list)
Set values for the AttributeNameList |
void |
setHomeSite(java.lang.String homesite)
Sets the HomeSite |
void |
setReferred(java.net.URI ref)
Sets the URI from where the requester was redirected to this service |
void |
setSubjectHandle(java.lang.String handle)
Sets the subject handle |
java.lang.Object |
toSAML()
Converts the eduGAIN AttributeRequest object into a SAML request. |
org.opensaml.SAMLRequest |
toSAML1(int minor)
Map the current AttributeRequest to a SAML 1.X response. |
private org.opensaml.saml2.core.RequestAbstractType |
toSAML2(int minor)
Map the current AttributeRequest to a SAML 2.X response. |
| Methods inherited from class net.geant.edugain.base.Request |
|---|
fromSAML, generateRequestID, getCacheReference, getConsumerId, getIssued, getProducerId, getRequestID, getResource, isStrict, setCacheReference, setConsumerId, setIssued, setProducerId, setRequestID, setResource, setStrict, setValidator, toBase64, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String subjectHandle
protected java.util.ArrayList<javax.xml.namespace.QName> attributeNameList
protected java.lang.String homeSite
protected java.net.URI referred
| Constructor Detail |
|---|
public AttributeRequest()
throws BaseException
BaseException
public AttributeRequest(boolean strict)
throws BaseException
strict - Whether to use strict mode or not.
BaseException
public AttributeRequest(java.io.InputStream stream)
throws BaseException
stream - The InputStream.
BaseException
public AttributeRequest(java.io.InputStream stream,
boolean strict)
throws BaseException
stream - The InputStream.strict - Whether to use strict mode or not.
BaseException
public AttributeRequest(org.w3c.dom.Element element)
throws BaseException
element - The Element.
BaseException
public AttributeRequest(org.w3c.dom.Element element,
boolean strict)
throws BaseException
element - The Element.strict - Whether to use strict mode or not.
BaseException
public AttributeRequest(org.opensaml.SAMLRequest request)
throws BaseException
request - The original SAML request.
BaseException
public AttributeRequest(org.opensaml.SAMLRequest request,
boolean strict)
throws BaseException
request - The original SAML request.strict - Whether to use strict mode or not.
BaseException
public AttributeRequest(org.opensaml.saml2.core.RequestAbstractType request)
throws BaseException
request - The original SAML request.
BaseException| Method Detail |
|---|
public void setSubjectHandle(java.lang.String handle)
public java.lang.String getSubjectHandle()
public java.util.ArrayList<javax.xml.namespace.QName> getAttributeNameList()
AttributeNameList
public void addAttributeName(java.lang.String namespace,
java.lang.String name)
public void setAttributeNameList(java.util.ArrayList<javax.xml.namespace.QName> list)
AttributeNameList
public void setHomeSite(java.lang.String homesite)
public java.lang.String getHomeSite()
public void setReferred(java.net.URI ref)
public java.net.URI getReferred()
public void fromSAML(org.opensaml.SAMLRequest request)
throws BaseException
AttributeRequest from a SAMLRequest.
fromSAML in class Requestrequest - The SAMLRequest
BaseException
public void fromSAML(org.opensaml.saml2.core.RequestAbstractType request)
throws BaseException
AttributeRequest from a SAML 2 Request
fromSAML in class Requestrequest - The SAML 2 Request
BaseException
public java.lang.Object toSAML()
throws BaseException
toSAML in class RequestSAMLRequest or a
RequestAbstractType, depending on the SAML version
eduGAIN is configured to use.
BaseException
public 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 | ||||||||