|
|||||||||
| 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.AuthenticationResponse
public class AuthenticationResponse
A response containing authentication data according to a previously issued AuthNReq. It must contain an anonymised handle to allow further attribute requests, and may contain any other attributes about the entity that originated the request, according to service and privacy policies.
This class extends Response.
| Field Summary | |
|---|---|
private java.util.ArrayList<AttributeValues> |
attributeValueList
|
private java.lang.String |
subjectHandle
|
| Constructor Summary | |
|---|---|
AuthenticationResponse()
Creates a new instance of AuthenticationResponse |
|
AuthenticationResponse(org.opensaml.saml2.core.Response rsp)
Creates a new instance of AuthenticationResponse, filling the fields with the Response data received. |
|
AuthenticationResponse(org.opensaml.SAMLResponse rsp)
Creates a new instance of AuthenticationResponse, filling the fields with the SAMLResponse data received. |
|
AuthenticationResponse(org.opensaml.SAMLResponse rsp,
boolean strict)
Creates a new instance of AuthenticationResponse, filling the fields with the SAMLResponse data received. |
|
| Method Summary | |
|---|---|
void |
addAttributeValue(AttributeValues values)
Adds the specified attribute-value to the current list. |
void |
addAttributeValue(java.lang.String namespace,
java.lang.String name,
java.lang.String[] values)
Adds the specified attribute-value to the current list. |
void |
fromSAML(org.opensaml.saml2.core.Response response)
Fill this AuthenticationResponse with a SAML 2 Response |
void |
fromSAML(org.opensaml.SAMLResponse response)
Fill this AuthenticationResponse with a SAMLResponse. |
java.util.ArrayList<AttributeValues> |
getAttributeValueList()
Returns a list of elements, each of them corresponding to one attribute that the identity is willing to deliver upon successful authentication |
java.lang.String |
getSubjectHandle()
Returns identification string returned upon successfull authentication |
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 |
setSubjectHandle(java.lang.String subjectHandle)
Sets the identification string returned upon successfull authentication |
java.lang.Object |
toSAML()
Converts this response object into a SAML response. |
private org.opensaml.SAMLResponse |
toSAML1(int minor)
Map the current AuthenticationResponse to a SAML 1.X response. |
private org.opensaml.saml2.core.Response |
toSAML2(int minor)
Map the current AuthenticationResponse to a SAML 2.X response. |
| Methods inherited from class net.geant.edugain.base.Response |
|---|
addInterface, generateResponseID, getAdditionalData, getConsumerId, getInResponseTo, getInterfaces, getIssued, getNotBefore, getNotOnOrAfter, getProducerId, getResponseID, getResult, getResultMessage, isStrict, setAdditionalData, setConsumerId, setInResponseTo, setInterfaces, setIssued, setNotBefore, setNotOnOrAfter, setProducerId, setResponseID, setResult, setResultMessage, setStrict, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private java.util.ArrayList<AttributeValues> attributeValueList
private java.lang.String subjectHandle
| Constructor Detail |
|---|
public AuthenticationResponse()
public AuthenticationResponse(org.opensaml.SAMLResponse rsp)
throws BaseException
rsp - The original SAML response.
BaseException
public AuthenticationResponse(org.opensaml.SAMLResponse rsp,
boolean strict)
throws BaseException
rsp - The original SAML response.strict - Whether to use strict mode or not.
BaseException
public AuthenticationResponse(org.opensaml.saml2.core.Response rsp)
throws BaseException
rsp - The original SAML 2 response.
BaseException| Method Detail |
|---|
public java.util.ArrayList<AttributeValues> getAttributeValueList()
public void addAttributeValue(java.lang.String namespace,
java.lang.String name,
java.lang.String[] values)
namespace - The namespace of the attribute.name - The name of the attribute.values - A set of values for the attribute.public void addAttributeValue(AttributeValues values)
values - The AttributeValues to add.public void setAttributeValueList(java.util.ArrayList<AttributeValues> attributeValueList)
public java.lang.String getSubjectHandle()
public void setSubjectHandle(java.lang.String subjectHandle)
public void fromSAML(org.opensaml.SAMLResponse response)
throws BaseException
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 | ||||||||