net.geant.edugain.base
Class AttributeResponse

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

public class AttributeResponse
extends Response
implements java.io.Serializable

A response containing attributes according to a previously issued AttributeRequest. It must contain a list of attribute/value(s) pairs and/or reasons for not disclosing certain values or attributes, according to service and privacy policies.

This class extends Response.

Author:
Jose Manuel Macias
See Also:
Serialized Form

Field Summary
protected  java.util.ArrayList<AttributeValues> attributeValues
          A list of elements, each of them corresponding to one attribute that the identity source is willing to deliver upon successful authentication.
private  org.apache.log4j.Logger log
           
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.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
AttributeResponse()
          Creates a new instance of AttributeResponse
 
Method Summary
 void fromSAML(org.opensaml.SAMLResponse response)
          Feeds this object from an String containing a SAML response.
 java.util.ArrayList<AttributeValues> getAttributeValueList()
          Gets the list of attribute-value pairs
 java.lang.String getSubjectHandle()
          Gets the value of the SubjectHandle
 void setAttributeValueList(java.util.ArrayList<AttributeValues> attributeValueList)
          Sets the list of attribute-value pairs
 void setSubjectHandle(java.lang.String handle)
          Sets the subject handle
 org.opensaml.SAMLResponse toSAML()
          Converts this response 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

subjectHandle

protected java.lang.String subjectHandle
The identification string obtained upon the last successful authentication of the subject requesting access to the resource.


attributeValues

protected java.util.ArrayList<AttributeValues> attributeValues
A list of elements, each of them corresponding to one attribute that the identity source is willing to deliver upon successful authentication.


log

private org.apache.log4j.Logger log
Constructor Detail

AttributeResponse

public AttributeResponse()
Creates a new instance of AttributeResponse

Method Detail

setSubjectHandle

public void setSubjectHandle(java.lang.String handle)
Sets the subject handle


getSubjectHandle

public java.lang.String getSubjectHandle()
Gets the value of the SubjectHandle


getAttributeValueList

public java.util.ArrayList<AttributeValues> getAttributeValueList()
Gets the list of attribute-value pairs


setAttributeValueList

public void setAttributeValueList(java.util.ArrayList<AttributeValues> attributeValueList)
Sets the list of attribute-value pairs


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 this response object into a SAML response

Throws:
BaseException