net.geant.edugain.base
Class AuthenticationResponse

java.lang.Object
  extended by net.geant.edugain.base.Response
      extended by net.geant.edugain.base.AuthenticationResponse
All Implemented Interfaces:
java.io.Serializable

public class AuthenticationResponse
extends Response
implements java.io.Serializable

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.

Author:
Jose Manuel Macias
See Also:
Serialized Form

Field Summary
private  java.util.ArrayList<AttributeValues> attributeValueList
           
private  org.apache.log4j.Logger log
           
private  java.lang.String subjectHandle
           
 
Fields inherited from class net.geant.edugain.base.Response
additionalData, consumerId, EDUGAIN_NAMESPACE_RESULT_ACCEPTED, EDUGAIN_NAMESPACE_RESULT_CONNECT_TO, EDUGAIN_NAMESPACE_RESULT_DENY, EDUGAIN_NAMESPACE_RESULT_EXPIRED_MESSAGE, EDUGAIN_NAMESPACE_RESULT_FAULT, EDUGAIN_NAMESPACE_RESULT_INCOMPATIBLE_VERSIONS, EDUGAIN_NAMESPACE_RESULT_INSUFFICIENT_DATA, EDUGAIN_NAMESPACE_RESULT_INVALID_CREDENTIALS, EDUGAIN_NAMESPACE_RESULT_MALFORMED_MESSAGE, EDUGAIN_NAMESPACE_RESULT_REDIRECT_USER_TO, EDUGAIN_NAMESPACE_RESULT_TRUST_ERROR, EDUGAIN_NAMESPACE_RESULT_UNKNOWN_HOMESITE, errorMessage, errorReason, inResponseTo, interfaces, issued, notBefore, notOnOrAfter, producerId, responseID, result, resultMessage
 
Constructor Summary
AuthenticationResponse()
          Creates a new instance of AuthenticationResponse object
AuthenticationResponse(java.lang.String inresponseto)
          Creates a new instance of AuthenticationResponse object in response to a given request.
 
Method Summary
 void fromSAML(org.opensaml.SAMLResponse response)
          Feeds this object from an String containing a SAML response.
 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
 org.opensaml.SAMLResponse toSAML()
          Converts the AuthenticationResponse object into a SAML 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

attributeValueList

private java.util.ArrayList<AttributeValues> attributeValueList

subjectHandle

private java.lang.String subjectHandle

log

private org.apache.log4j.Logger log
Constructor Detail

AuthenticationResponse

public AuthenticationResponse()
Creates a new instance of AuthenticationResponse object


AuthenticationResponse

public AuthenticationResponse(java.lang.String inresponseto)
Creates a new instance of AuthenticationResponse object in response to a given request.

Parameters:
inresponseto - The Id of the request associated to this response
Method Detail

getAttributeValueList

public 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


setAttributeValueList

public 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


getSubjectHandle

public java.lang.String getSubjectHandle()
Returns identification string returned upon successfull authentication


setSubjectHandle

public void setSubjectHandle(java.lang.String subjectHandle)
Sets the identification string returned upon successfull authentication


fromSAML

public void fromSAML(org.opensaml.SAMLResponse response)
              throws BaseException
Feeds this object from an String containing a SAML response.

Throws:
BaseException

toSAML

public org.opensaml.SAMLResponse toSAML()
                                 throws BaseException
Converts the AuthenticationResponse object into a SAML response

Throws:
BaseException