eu.semiramis.identityaggregator.client
Class IAClient

java.lang.Object
  extended by eu.semiramis.identityaggregator.client.IAClient

public class IAClient
extends java.lang.Object

Client for performing request to Identity Aggregators


Field Summary
static java.lang.String TRANSACTION_ATTRIBUTE
           
 
Constructor Summary
IAClient(java.lang.String fileConfigPath)
          Constructor indicating the config file path
 
Method Summary
 boolean containsAttributes(javax.servlet.http.HttpServletRequest request)
          Checks if the incoming request contains attributes, that is, checks if contains SAMLAttributeStatements
 boolean containsAttributes(javax.servlet.http.HttpServletRequest request, eu.semiramis.commons.audit.Transaction auditTransaction)
          Checks if the incoming request contains attributes, that is, checks if contains SAMLAttributeStatements
 boolean containsAuthenticationToken(javax.servlet.http.HttpServletRequest request)
          Checks if the incoming request has been authenticated, that is, checks if contains a valid SAMLAuthenticationStatement
 boolean containsAuthenticationToken(javax.servlet.http.HttpServletRequest request, eu.semiramis.commons.audit.Transaction auditTransaction)
          Checks if the incoming request has been authenticated, that is, checks if contains a valid SAMLAuthenticationStatement
 boolean containsAuthorizationToken(javax.servlet.http.HttpServletRequest request)
          Checks if the incoming request contains any authorization token, that is, checks if contains any SAMLAuthorizationStatement
 boolean containsAuthorizationToken(javax.servlet.http.HttpServletRequest request, eu.semiramis.commons.audit.Transaction auditTransaction)
          Checks if the incoming request contains any authorization token, that is, checks if contains any SAMLAuthorizationStatement
 boolean containsResponse(javax.servlet.http.HttpServletRequest request)
          checks if the incoming request contains a SAMLResponse
 java.util.List<eu.semiramis.identityaggregator.commons.Attribute> getAttributes(javax.servlet.http.HttpServletRequest request)
          Gets attributes contained in the incoming HTTP request.
 java.util.List<eu.semiramis.identityaggregator.commons.Attribute> getAttributes(javax.servlet.http.HttpServletRequest request, eu.semiramis.commons.audit.Transaction auditTransaction)
          Gets attributes contained in the incoming HTTP request.
 eu.semiramis.identityaggregator.commons.AuthenticationToken getAuthenticationToken(javax.servlet.http.HttpServletRequest request)
          Gets the authentication token contained in the incoming HTTP request.
 eu.semiramis.identityaggregator.commons.AuthenticationToken getAuthenticationToken(javax.servlet.http.HttpServletRequest request, eu.semiramis.commons.audit.Transaction auditTransaction)
          Gets the authentication token contained in the incoming HTTP request.
 eu.semiramis.identityaggregator.commons.AuthorizationToken getAuthorizationToken(javax.servlet.http.HttpServletRequest request)
          Gets authorization token contained in the incoming HTTP request.
 eu.semiramis.identityaggregator.commons.AuthorizationToken getAuthorizationToken(javax.servlet.http.HttpServletRequest request, eu.semiramis.commons.audit.Transaction auditTransaction)
          Gets authorization token contained in the incoming HTTP request.
 java.lang.String getIaId()
           
 java.lang.String getIaUrl()
          Gets the URL of the Identity Aggregator indicating where the messages will be sent.
 java.lang.String getOriginIssuer(javax.servlet.http.HttpServletRequest request)
          Gets the origin issuer of the request specified in the incoming HTTP request.
 java.lang.String getOriginIssuer(javax.servlet.http.HttpServletRequest request, eu.semiramis.commons.audit.Transaction auditTransaction)
          Gets the origin issuer of the request specified in the incoming HTTP request.
 java.lang.String getResponseURL()
           
 java.lang.String getSubjectId(eu.semiramis.identityaggregator.commons.Token token)
          Gets the subject pseudonym through a token
 ResponseStruct processResponse(javax.servlet.http.HttpServletRequest request)
          Get authentication and authorization tokens or attributes contained in the incoming request
 ResponseStruct processResponse(javax.servlet.http.HttpServletRequest request, eu.semiramis.commons.audit.Transaction auditTransaction)
          Get authentication and authorization tokens or attributes contained in the incoming request
 RequestResult requestAttributeAssertion(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.util.List<eu.semiramis.identityaggregator.commons.Attribute> attributes, java.io.File attrEncrX509Cert, java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens)
          Request user attributes to the Identity Aggregator sending an SAMLAttributeQuery.
 RequestResult requestAttributeAssertion(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.util.List<eu.semiramis.identityaggregator.commons.Attribute> attributes, java.io.File attrEncrX509Cert, java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens, eu.semiramis.commons.audit.Transaction auditTransaction)
          Request user attributes to the Identity Aggregator sending an SAMLAttributeQuery.
 RequestResult requestAttributeAssertion(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.util.List<eu.semiramis.identityaggregator.commons.Attribute> attributes, java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens)
          Request user attributes to the Identity Aggregator sending an SAMLAttributeQuery.
 RequestResult requestAttributeAssertion(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.util.List<eu.semiramis.identityaggregator.commons.Attribute> attributes, java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens, eu.semiramis.commons.audit.Transaction auditTransaction)
          Request user attributes to the Identity Aggregator sending an SAMLAttributeQuery.
 RequestResult requestAttributeAssertion(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.util.List<eu.semiramis.identityaggregator.commons.Attribute> attributes, java.lang.String subjectId, java.lang.String subjectDomain, java.io.File attrEncrX509Cert, java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens)
          Request user attributes to the Identity Aggregator sending an SAMLAttributeQuery.
 RequestResult requestAttributeAssertion(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.util.List<eu.semiramis.identityaggregator.commons.Attribute> attributes, java.lang.String subjectId, java.lang.String subjectDomain, java.io.File attrEncrX509Cert, java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens, eu.semiramis.commons.audit.Transaction auditTransaction)
          Request user attributes to the Identity Aggregator sending an SAMLAttributeQuery.
 RequestResult requestAttributeAssertion(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.util.List<eu.semiramis.identityaggregator.commons.Attribute> attributes, java.lang.String subjectId, java.lang.String subjectDomain, java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens)
          Request user attributes to the Identity Aggregator sending an SAMLAttributeQuery.
 RequestResult requestAttributeAssertion(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.util.List<eu.semiramis.identityaggregator.commons.Attribute> attributes, java.lang.String subjectId, java.lang.String subjectDomain, java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens, eu.semiramis.commons.audit.Transaction auditTransaction)
          Request user attributes to the Identity Aggregator sending an SAMLAttributeQuery.
 RequestResult requestAttributeAssertion(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.util.List<eu.semiramis.identityaggregator.commons.Attribute> attributes, java.lang.String subjectId, java.lang.String subjectDomain, java.lang.String originIssuer, java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens)
          Request user attributes to the Identity Aggregator sending an SAMLAttributeQuery.
 RequestResult requestAttributeAssertion(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.util.List<eu.semiramis.identityaggregator.commons.Attribute> attributes, java.lang.String subjectId, java.lang.String subjectDomain, java.lang.String originIssuer, java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens, eu.semiramis.commons.audit.Transaction auditTransaction)
          Request user attributes to the Identity Aggregator sending an SAMLAttributeQuery.
 RequestResult requestAttributeAssertion(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.util.List<eu.semiramis.identityaggregator.commons.Attribute> attributes, java.lang.String subjectId, java.lang.String subjectDomain, java.lang.String originIssuer, java.security.cert.X509Certificate attrEncrX509Cert, java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens)
          Request user attributes to the Identity Aggregator sending an SAMLAttributeQuery.
 RequestResult requestAttributeAssertion(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.util.List<eu.semiramis.identityaggregator.commons.Attribute> attributes, java.lang.String subjectId, java.lang.String subjectDomain, java.lang.String originIssuer, java.security.cert.X509Certificate attrEncrX509Cert, java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens, eu.semiramis.commons.audit.Transaction auditTransaction)
          Request user attributes to the Identity Aggregator sending an SAMLAttributeQuery.
 RequestResult requestAttributeAssertion(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String subjectId, java.util.List<eu.semiramis.identityaggregator.commons.Attribute> attributes)
          Request user attributes to the Identity Aggregator sending an SAMLAttributeQuery.
 RequestResult requestAttributeAssertion(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String subjectId, java.util.List<eu.semiramis.identityaggregator.commons.Attribute> attributes, java.io.File attrEncrX509Cert)
          Request user attributes to the Identity Aggregator sending an SAMLAttributeQuery.
 RequestResult requestAttributeAssertion(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String subjectId, java.util.List<eu.semiramis.identityaggregator.commons.Attribute> attributes, java.io.File attrEncrX509Cert, eu.semiramis.commons.audit.Transaction auditTransaction)
          Request user attributes to the Identity Aggregator sending an SAMLAttributeQuery.
 RequestResult requestAttributeAssertion(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String subjectId, java.util.List<eu.semiramis.identityaggregator.commons.Attribute> attributes, eu.semiramis.commons.audit.Transaction auditTransaction)
          Request user attributes to the Identity Aggregator sending an SAMLAttributeQuery.
 RequestResult requestAttributeAssertion(java.lang.String requestURL, javax.servlet.http.HttpServletResponse response, java.util.List<eu.semiramis.identityaggregator.commons.Attribute> attributes, java.lang.String subjectId, java.lang.String subjectDomain, java.lang.String originIssuer, java.security.cert.X509Certificate attrEncrX509Cert, java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens, eu.semiramis.commons.audit.Transaction auditTransaction)
          Request user attributes to the Identity Aggregator sending an SAMLAttributeQuery.
 RequestResult requestAttributes(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.util.List<java.lang.String> attributeNames, java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens)
          Deprecated. Replaced by requestAttributeAssertion().
 RequestResult requestAttributes(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.util.List<java.lang.String> attributeNames, java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens, eu.semiramis.commons.audit.Transaction auditTransaction)
          Deprecated. Replaced by requestAttributeAssertion().
 RequestResult requestAttributes(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.util.List<java.lang.String> attributeNames, java.lang.String subjectId, java.lang.String subjectDomain, java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens)
          Deprecated. Replaced by requestAttributeAssertion().
 RequestResult requestAttributes(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.util.List<java.lang.String> attributeNames, java.lang.String subjectId, java.lang.String subjectDomain, java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens, eu.semiramis.commons.audit.Transaction auditTransaction)
          Deprecated. Replaced by requestAttributeAssertion().
 RequestResult requestAttributes(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String subjectId, java.util.List<java.lang.String> attributeNames)
          Deprecated. Replaced by requestAttributeAssertion().
 RequestResult requestAttributes(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String subjectId, java.util.List<java.lang.String> attributeNames, eu.semiramis.commons.audit.Transaction auditTransaction)
          Deprecated. Replaced by requestAttributeAssertion().
 RequestResult requestAuthenticationToken(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Authenticates an end user, redirecting her to the IA.
 RequestResult requestAuthenticationToken(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, eu.semiramis.identityaggregator.commons.Conditions conditions)
          Authenticates an end user, redirecting her to the IA.
 RequestResult requestAuthenticationToken(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, eu.semiramis.identityaggregator.commons.Conditions conditions, eu.semiramis.commons.audit.Transaction auditTransaction)
          Authenticates an end user, redirecting her to the IA.
 RequestResult requestAuthenticationToken(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String originIssuer)
          Authenticates an end user, redirecting her to the IA.
 RequestResult requestAuthenticationToken(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String originIssuer, eu.semiramis.identityaggregator.commons.Conditions conditions)
          Authenticates an end user, redirecting her to the IA.
 RequestResult requestAuthenticationToken(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String originIssuer, eu.semiramis.identityaggregator.commons.Conditions conditions, eu.semiramis.commons.audit.Transaction auditTransaction)
          Authenticates an end user, redirecting her to the IA.
 RequestResult requestAuthenticationToken(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String originIssuer, eu.semiramis.commons.audit.Transaction auditTransaction)
          Authenticates an end user, redirecting her to the IA.
 RequestResult requestAuthenticationToken(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, eu.semiramis.commons.audit.Transaction auditTransaction)
          Authenticates an end user, redirecting her to the IA.
 RequestResult requestAuthorizationToken(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String action, java.lang.String resource, java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens)
          Request authorization for a subject to perform an action over a resource.
 RequestResult requestAuthorizationToken(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String action, java.lang.String resource, java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens, eu.semiramis.commons.audit.Transaction auditTransaction)
          Request authorization for a subject to perform an action over a resource.
 RequestResult requestAuthorizationToken(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String subjectId, java.lang.String action, java.lang.String resource)
          Request authorization for a subject to perform an action over a resource.
 RequestResult requestAuthorizationToken(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String subjectId, java.lang.String subjectDomain, java.lang.String action, java.lang.String resource, java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens)
          Request authorization for a subject to perform an action over a resource.
 RequestResult requestAuthorizationToken(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String subjectId, java.lang.String subjectDomain, java.lang.String action, java.lang.String resource, java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens, eu.semiramis.commons.audit.Transaction auditTransaction)
          Request authorization for a subject to perform an action over a resource.
 RequestResult requestAuthorizationToken(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String subjectId, java.lang.String subjectDomain, java.lang.String action, java.lang.String resource, java.lang.String originIssuer, java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens)
          Request authorization for a subject to perform an action over a resource.
 RequestResult requestAuthorizationToken(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String subjectId, java.lang.String subjectDomain, java.lang.String action, java.lang.String resource, java.lang.String originIssuer, java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens, eu.semiramis.commons.audit.Transaction auditTransaction)
          Request authorization for a subject to perform an action over a resource.
 RequestResult requestAuthorizationToken(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String subjectId, java.lang.String action, java.lang.String resource, eu.semiramis.commons.audit.Transaction auditTransaction)
          Request authorization for a subject to perform an action over a resource.
 java.lang.String resolveIDMapping(java.lang.String id)
          Having a pseudonym, this method asks for real or domain specific identifier of a subject.
 org.opensaml.saml2.core.Response sendResponse(java.lang.String requestId, java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String providerId, java.lang.String providerCSUrl)
           
 org.opensaml.saml2.core.Response sendResponse(java.lang.String requestId, java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String statusCode, java.lang.String providerId, java.lang.String providerCSUrl)
           
 org.opensaml.saml2.core.Response sendResponse(java.lang.String requestId, java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String statusCode, java.lang.String statusMessage, java.lang.String providerId, java.lang.String providerCSUrl)
           
 org.opensaml.saml2.core.Response sendResponse(java.lang.String requestId, java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens, javax.servlet.http.HttpServletResponse response, java.lang.String providerId, java.lang.String providerCSUrl)
           
 org.opensaml.saml2.core.Response sendResponse(java.lang.String requestId, java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens, javax.servlet.http.HttpServletResponse response, java.lang.String statusCode, java.lang.String providerId, java.lang.String providerCSUrl)
           
 org.opensaml.saml2.core.Response sendResponse(java.lang.String requestId, java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens, javax.servlet.http.HttpServletResponse response, java.lang.String statusCode, java.lang.String statusMessage, java.lang.String providerId, java.lang.String providerCSUrl)
           
 org.opensaml.saml2.core.Response sendResponse(java.lang.String requestId, java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens, javax.servlet.http.HttpServletResponse response, java.lang.String statusCode, java.lang.String statusMessage, java.lang.String providerId, java.lang.String providerCSUrl, eu.semiramis.commons.audit.Transaction auditTransaction)
           
 org.opensaml.saml2.core.Response sendResponse(java.lang.String requestId, java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens, javax.servlet.http.HttpServletResponse response, java.lang.String statusCode, java.lang.String providerId, java.lang.String providerCSUrl, eu.semiramis.commons.audit.Transaction auditTransaction)
           
 org.opensaml.saml2.core.Response sendResponse(java.lang.String requestId, java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens, javax.servlet.http.HttpServletResponse response, java.lang.String providerId, java.lang.String providerCSUrl, eu.semiramis.commons.audit.Transaction auditTransaction)
           
 void setIaId(java.lang.String iaId)
           
 void setResponseURL(java.lang.String responseURL)
           
 boolean validateToken(javax.servlet.http.HttpServletRequest request, eu.semiramis.identityaggregator.commons.Token token)
          Checks if a token is valid.
 boolean validateToken(eu.semiramis.identityaggregator.commons.Token token)
          Checks if a token is valid.
 boolean validateToken(eu.semiramis.identityaggregator.commons.Token token, eu.semiramis.commons.audit.Transaction auditTransaction)
          Checks if a token is valid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRANSACTION_ATTRIBUTE

public static final java.lang.String TRANSACTION_ATTRIBUTE
See Also:
Constant Field Values
Constructor Detail

IAClient

public IAClient(java.lang.String fileConfigPath)
         throws java.util.InvalidPropertiesFormatException,
                java.io.FileNotFoundException,
                java.io.IOException,
                java.lang.NumberFormatException,
                org.opensaml.xml.security.SecurityException,
                java.lang.IllegalArgumentException,
                java.lang.NoSuchFieldException,
                java.lang.IllegalAccessException,
                org.opensaml.xml.parse.XMLParserException,
                org.opensaml.xml.ConfigurationException
Constructor indicating the config file path

Parameters:
fileConfigPath - config file path
Throws:
java.util.InvalidPropertiesFormatException
java.io.FileNotFoundException
java.io.IOException
java.lang.NumberFormatException
org.opensaml.xml.security.SecurityException
java.lang.IllegalArgumentException
java.lang.NoSuchFieldException
java.lang.IllegalAccessException
org.opensaml.xml.parse.XMLParserException
org.opensaml.xml.ConfigurationException
Method Detail

containsAuthenticationToken

public boolean containsAuthenticationToken(javax.servlet.http.HttpServletRequest request)
                                    throws TokenException
Checks if the incoming request has been authenticated, that is, checks if contains a valid SAMLAuthenticationStatement

Parameters:
request - HTTP Post request
Returns:
true if has been successfully authenticated, false otherwise
Throws:
TokenException

containsAuthenticationToken

public boolean containsAuthenticationToken(javax.servlet.http.HttpServletRequest request,
                                           eu.semiramis.commons.audit.Transaction auditTransaction)
                                    throws TokenException
Checks if the incoming request has been authenticated, that is, checks if contains a valid SAMLAuthenticationStatement

Parameters:
request - HTTP Post request
auditTransaction - transaction to be used for auditing
Returns:
true if has been successfully authenticated, false otherwise
Throws:
TokenException

containsAttributes

public boolean containsAttributes(javax.servlet.http.HttpServletRequest request)
                           throws TokenException
Checks if the incoming request contains attributes, that is, checks if contains SAMLAttributeStatements

Parameters:
request - HTTP Post request
Returns:
true if contains attributes, false otherwise
Throws:
TokenException

containsAttributes

public boolean containsAttributes(javax.servlet.http.HttpServletRequest request,
                                  eu.semiramis.commons.audit.Transaction auditTransaction)
                           throws TokenException
Checks if the incoming request contains attributes, that is, checks if contains SAMLAttributeStatements

Parameters:
request - HTTP Post request
auditTransaction - transaction to be used for auditing
Returns:
true if contains attributes, false otherwise
Throws:
TokenException

containsAuthorizationToken

public boolean containsAuthorizationToken(javax.servlet.http.HttpServletRequest request)
                                   throws TokenException
Checks if the incoming request contains any authorization token, that is, checks if contains any SAMLAuthorizationStatement

Parameters:
request - HTTP Post request
Returns:
true if contains authorization tokens, false otherwise
Throws:
TokenException

containsAuthorizationToken

public boolean containsAuthorizationToken(javax.servlet.http.HttpServletRequest request,
                                          eu.semiramis.commons.audit.Transaction auditTransaction)
                                   throws TokenException
Checks if the incoming request contains any authorization token, that is, checks if contains any SAMLAuthorizationStatement

Parameters:
request - HTTP Post request
auditTransaction - transaction to be used for auditing
Returns:
true if contains authorization tokens, false otherwise
Throws:
TokenException

getAuthenticationToken

public eu.semiramis.identityaggregator.commons.AuthenticationToken getAuthenticationToken(javax.servlet.http.HttpServletRequest request)
Gets the authentication token contained in the incoming HTTP request.

Parameters:
request - HTTP Post request
Returns:
Authentication token or null if authentication token is not present.

getAuthenticationToken

public eu.semiramis.identityaggregator.commons.AuthenticationToken getAuthenticationToken(javax.servlet.http.HttpServletRequest request,
                                                                                          eu.semiramis.commons.audit.Transaction auditTransaction)
Gets the authentication token contained in the incoming HTTP request.

Parameters:
request - HTTP Post request
auditTransaction - transaction to be used for auditing
Returns:
Authentication token or null if authentication token is not present.

getOriginIssuer

public java.lang.String getOriginIssuer(javax.servlet.http.HttpServletRequest request)
Gets the origin issuer of the request specified in the incoming HTTP request.

Parameters:
request - HTTP Post request
Returns:
Origin issuer of the request or null not present.

getOriginIssuer

public java.lang.String getOriginIssuer(javax.servlet.http.HttpServletRequest request,
                                        eu.semiramis.commons.audit.Transaction auditTransaction)
Gets the origin issuer of the request specified in the incoming HTTP request.

Parameters:
request - HTTP Post request
auditTransaction - transaction to be used for auditing
Returns:
Origin issuer of the request or null not present.

getAttributes

public java.util.List<eu.semiramis.identityaggregator.commons.Attribute> getAttributes(javax.servlet.http.HttpServletRequest request)
Gets attributes contained in the incoming HTTP request.

Parameters:
request - HTTP Post request
Returns:
List of attributes, or null if not attribute statements has been included.

getAttributes

public java.util.List<eu.semiramis.identityaggregator.commons.Attribute> getAttributes(javax.servlet.http.HttpServletRequest request,
                                                                                       eu.semiramis.commons.audit.Transaction auditTransaction)
Gets attributes contained in the incoming HTTP request.

Parameters:
request - HTTP Post request
auditTransaction - transaction to be used for auditing
Returns:
List of attributes, or null if not attribute statements has been included.

getAuthorizationToken

public eu.semiramis.identityaggregator.commons.AuthorizationToken getAuthorizationToken(javax.servlet.http.HttpServletRequest request)
Gets authorization token contained in the incoming HTTP request.

Parameters:
request - HTTP Post Request
Returns:
Authorization Token or null if does not contain any Authorization statement.

getAuthorizationToken

public eu.semiramis.identityaggregator.commons.AuthorizationToken getAuthorizationToken(javax.servlet.http.HttpServletRequest request,
                                                                                        eu.semiramis.commons.audit.Transaction auditTransaction)
Gets authorization token contained in the incoming HTTP request.

Parameters:
request - HTTP Post Request
auditTransaction - transaction to be used for auditing
Returns:
Authorization Token or null if does not contain any Authorization statement.

requestAuthenticationToken

public RequestResult requestAuthenticationToken(javax.servlet.http.HttpServletRequest request,
                                                javax.servlet.http.HttpServletResponse response)
Authenticates an end user, redirecting her to the IA. This methods creates a SAML Request, sending it to the IA.

Parameters:
request -
response -
Returns:
AuthenticationResponse indicating the result of the request

requestAuthenticationToken

public RequestResult requestAuthenticationToken(javax.servlet.http.HttpServletRequest request,
                                                javax.servlet.http.HttpServletResponse response,
                                                eu.semiramis.commons.audit.Transaction auditTransaction)
Authenticates an end user, redirecting her to the IA. This methods creates a SAML Request, sending it to the IA.

Parameters:
request -
response -
auditTransaction - transaction to be used for auditing
Returns:
AuthenticationResponse indicating the result of the request

requestAuthenticationToken

public RequestResult requestAuthenticationToken(javax.servlet.http.HttpServletRequest request,
                                                javax.servlet.http.HttpServletResponse response,
                                                java.lang.String originIssuer)
Authenticates an end user, redirecting her to the IA. This methods creates a SAML Request, sending it to the IA.

Parameters:
request -
response -
originIssuer - Origin issuer of the request
Returns:
AuthenticationResponse indicating the result of the request

requestAuthenticationToken

public RequestResult requestAuthenticationToken(javax.servlet.http.HttpServletRequest request,
                                                javax.servlet.http.HttpServletResponse response,
                                                java.lang.String originIssuer,
                                                eu.semiramis.commons.audit.Transaction auditTransaction)
Authenticates an end user, redirecting her to the IA. This methods creates a SAML Request, sending it to the IA.

Parameters:
request -
response -
originIssuer - Origin issuer of the request
auditTransaction - transaction to be used for auditing
Returns:
AuthenticationResponse indicating the result of the request

requestAuthenticationToken

public RequestResult requestAuthenticationToken(javax.servlet.http.HttpServletRequest request,
                                                javax.servlet.http.HttpServletResponse response,
                                                eu.semiramis.identityaggregator.commons.Conditions conditions)
Authenticates an end user, redirecting her to the IA. This methods creates a SAML Request, sending it to the IA.

Parameters:
request - HttpServletRequest
response - HttpServletResponse
conditions - Additional conditions which have to be taken into account when user is authenticated
Returns:
RequestResult indicating the result of the request, and the ID of the request in order to associate the response with this request.

requestAuthenticationToken

public RequestResult requestAuthenticationToken(javax.servlet.http.HttpServletRequest request,
                                                javax.servlet.http.HttpServletResponse response,
                                                eu.semiramis.identityaggregator.commons.Conditions conditions,
                                                eu.semiramis.commons.audit.Transaction auditTransaction)
Authenticates an end user, redirecting her to the IA. This methods creates a SAML Request, sending it to the IA.

Parameters:
request - HttpServletRequest
response - HttpServletResponse
conditions - Additional conditions which have to be taken into account when user is authenticated
auditTransaction - transaction to be used for auditing
Returns:
RequestResult indicating the result of the request, and the ID of the request in order to associate the response with this request.

requestAuthenticationToken

public RequestResult requestAuthenticationToken(javax.servlet.http.HttpServletRequest request,
                                                javax.servlet.http.HttpServletResponse response,
                                                java.lang.String originIssuer,
                                                eu.semiramis.identityaggregator.commons.Conditions conditions)
Authenticates an end user, redirecting her to the IA. This methods creates a SAML Request, sending it to the IA.

Parameters:
request - HttpServletRequest
response - HttpServletResponse
originIssuer - Origin issuer of the request
conditions - Additional conditions which have to be taken into account when user is authenticated
Returns:
RequestResult indicating the result of the request, and the ID of the request in order to associate the response with this request.

requestAuthenticationToken

public RequestResult requestAuthenticationToken(javax.servlet.http.HttpServletRequest request,
                                                javax.servlet.http.HttpServletResponse response,
                                                java.lang.String originIssuer,
                                                eu.semiramis.identityaggregator.commons.Conditions conditions,
                                                eu.semiramis.commons.audit.Transaction auditTransaction)
Authenticates an end user, redirecting her to the IA. This methods creates a SAML Request, sending it to the IA.

Parameters:
request - HttpServletRequest
response - HttpServletResponse
originIssuer - Origin issuer of the request
conditions - Additional conditions which have to be taken into account when user is authenticated
auditTransaction - transaction to be used for auditing
Returns:
RequestResult indicating the result of the request, and the ID of the request in order to associate the response with this request.

requestAttributeAssertion

public RequestResult requestAttributeAssertion(javax.servlet.http.HttpServletRequest request,
                                               javax.servlet.http.HttpServletResponse response,
                                               java.lang.String subjectId,
                                               java.util.List<eu.semiramis.identityaggregator.commons.Attribute> attributes)
Request user attributes to the Identity Aggregator sending an SAMLAttributeQuery.

Parameters:
request - HttpServletRequest
response - HttpServletResponse
subjectId - Id of the user
attributes - Attributes which desire requesting. If null, a general SAMLAttributeQuery will be sent trying to recover all attributes associated to a user.
Returns:
RequestResult indicating the result of the request, and the ID of the request in order to associate the response with this request.

requestAttributeAssertion

public RequestResult requestAttributeAssertion(javax.servlet.http.HttpServletRequest request,
                                               javax.servlet.http.HttpServletResponse response,
                                               java.lang.String subjectId,
                                               java.util.List<eu.semiramis.identityaggregator.commons.Attribute> attributes,
                                               java.io.File attrEncrX509Cert)
Request user attributes to the Identity Aggregator sending an SAMLAttributeQuery.

Parameters:
request - HttpServletRequest
response - HttpServletResponse
subjectId - Id of the user
attributes - Attributes which desire requesting. If null, a general SAMLAttributeQuery will be sent trying to recover all attributes associated to a user.
attrEncrX509Cert - X509 certificate to be used for attribute encryption.
Returns:
RequestResult indicating the result of the request, and the ID of the request in order to associate the response with this request.

requestAttributeAssertion

public RequestResult requestAttributeAssertion(javax.servlet.http.HttpServletRequest request,
                                               javax.servlet.http.HttpServletResponse response,
                                               java.lang.String subjectId,
                                               java.util.List<eu.semiramis.identityaggregator.commons.Attribute> attributes,
                                               eu.semiramis.commons.audit.Transaction auditTransaction)
Request user attributes to the Identity Aggregator sending an SAMLAttributeQuery.

Parameters:
request - HttpServletRequest
response - HttpServletResponse
subjectId - Id of the user
attributes - Attributes which desire requesting. If null, a general SAMLAttributeQuery will be sent trying to recover all attributes associated to a user.
auditTransaction - transaction to be used for auditing
Returns:
RequestResult indicating the result of the request, and the ID of the request in order to associate the response with this request.

requestAttributeAssertion

public RequestResult requestAttributeAssertion(javax.servlet.http.HttpServletRequest request,
                                               javax.servlet.http.HttpServletResponse response,
                                               java.lang.String subjectId,
                                               java.util.List<eu.semiramis.identityaggregator.commons.Attribute> attributes,
                                               java.io.File attrEncrX509Cert,
                                               eu.semiramis.commons.audit.Transaction auditTransaction)
Request user attributes to the Identity Aggregator sending an SAMLAttributeQuery.

Parameters:
request - HttpServletRequest
response - HttpServletResponse
subjectId - Id of the user
attributes - Attributes which desire requesting. If null, a general SAMLAttributeQuery will be sent trying to recover all attributes associated to a user.
attrEncrX509Cert - X509 certificate to be used for attribute encryption.
auditTransaction - transaction to be used for auditing
Returns:
RequestResult indicating the result of the request, and the ID of the request in order to associate the response with this request.

requestAttributeAssertion

public RequestResult requestAttributeAssertion(javax.servlet.http.HttpServletRequest request,
                                               javax.servlet.http.HttpServletResponse response,
                                               java.util.List<eu.semiramis.identityaggregator.commons.Attribute> attributes,
                                               java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens)
Request user attributes to the Identity Aggregator sending an SAMLAttributeQuery.

Parameters:
request - HttpServletRequest
response - HttpServletResponse
attributes - Attributes which desire requesting. If null, a general SAMLAttributeQuery will be sent trying to recover all attributes associated to a user.
tokens - List of tokens indicating the user has previously authenticated or authorized.
Returns:
RequestResult indicating the result of the request, and the ID of the request in order to associate the response with this request.

requestAttributeAssertion

public RequestResult requestAttributeAssertion(javax.servlet.http.HttpServletRequest request,
                                               javax.servlet.http.HttpServletResponse response,
                                               java.util.List<eu.semiramis.identityaggregator.commons.Attribute> attributes,
                                               java.io.File attrEncrX509Cert,
                                               java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens)
Request user attributes to the Identity Aggregator sending an SAMLAttributeQuery.

Parameters:
request - HttpServletRequest
response - HttpServletResponse
attributes - Attributes which desire requesting. If null, a general SAMLAttributeQuery will be sent trying to recover all attributes associated to a user.
attrEncrX509Cert - X509 certificate to be used for attribute encryption.
tokens - List of tokens indicating the user has previously authenticated or authorized.
Returns:
RequestResult indicating the result of the request, and the ID of the request in order to associate the response with this request.

requestAttributeAssertion

public RequestResult requestAttributeAssertion(javax.servlet.http.HttpServletRequest request,
                                               javax.servlet.http.HttpServletResponse response,
                                               java.util.List<eu.semiramis.identityaggregator.commons.Attribute> attributes,
                                               java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens,
                                               eu.semiramis.commons.audit.Transaction auditTransaction)
Request user attributes to the Identity Aggregator sending an SAMLAttributeQuery.

Parameters:
request - HttpServletRequest
response - HttpServletResponse
attributes - Attributes which desire requesting. If null, a general SAMLAttributeQuery will be sent trying to recover all attributes associated to a user.
tokens - List of tokens indicating the user has previously authenticated or authorized.
auditTransaction - transaction to be used for auditing
Returns:
RequestResult indicating the result of the request, and the ID of the request in order to associate the response with this request.

requestAttributeAssertion

public RequestResult requestAttributeAssertion(javax.servlet.http.HttpServletRequest request,
                                               javax.servlet.http.HttpServletResponse response,
                                               java.util.List<eu.semiramis.identityaggregator.commons.Attribute> attributes,
                                               java.io.File attrEncrX509Cert,
                                               java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens,
                                               eu.semiramis.commons.audit.Transaction auditTransaction)
Request user attributes to the Identity Aggregator sending an SAMLAttributeQuery.

Parameters:
request - HttpServletRequest
response - HttpServletResponse
attributes - Attributes which desire requesting. If null, a general SAMLAttributeQuery will be sent trying to recover all attributes associated to a user.
attrEncrX509Cert - X509 certificate to be used for attribute encryption.
tokens - List of tokens indicating the user has previously authenticated or authorized.
auditTransaction - transaction to be used for auditing
Returns:
RequestResult indicating the result of the request, and the ID of the request in order to associate the response with this request.

requestAttributeAssertion

public RequestResult requestAttributeAssertion(javax.servlet.http.HttpServletRequest request,
                                               javax.servlet.http.HttpServletResponse response,
                                               java.util.List<eu.semiramis.identityaggregator.commons.Attribute> attributes,
                                               java.lang.String subjectId,
                                               java.lang.String subjectDomain,
                                               java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens)
Request user attributes to the Identity Aggregator sending an SAMLAttributeQuery.

Parameters:
request - HttpServletRequest
response - HttpServletResponse
attributes - Attributes which desire requesting. If null, a general SAMLAttributeQuery will be sent trying to recover all attributes associated to a user.
subjectId - Id of the user.
subjectDomain - Domain which will be recovered user attributes.
tokens - List of tokens indicating the user has previously authenticated or authorized.
Returns:
RequestResult indicating the result of the request, and the ID of the request in order to associate the response with this request.

requestAttributeAssertion

public RequestResult requestAttributeAssertion(javax.servlet.http.HttpServletRequest request,
                                               javax.servlet.http.HttpServletResponse response,
                                               java.util.List<eu.semiramis.identityaggregator.commons.Attribute> attributes,
                                               java.lang.String subjectId,
                                               java.lang.String subjectDomain,
                                               java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens,
                                               eu.semiramis.commons.audit.Transaction auditTransaction)
Request user attributes to the Identity Aggregator sending an SAMLAttributeQuery.

Parameters:
request - HttpServletRequest
response - HttpServletResponse
attributes - Attributes which desire requesting. If null, a general SAMLAttributeQuery will be sent trying to recover all attributes associated to a user.
subjectId - Id of the user.
subjectDomain - Domain which will be recovered user attributes.
tokens - List of tokens indicating the user has previously authenticated or authorized.
auditTransaction - transaction to be used for auditing
Returns:
RequestResult indicating the result of the request, and the ID of the request in order to associate the response with this request.

requestAttributeAssertion

public RequestResult requestAttributeAssertion(javax.servlet.http.HttpServletRequest request,
                                               javax.servlet.http.HttpServletResponse response,
                                               java.util.List<eu.semiramis.identityaggregator.commons.Attribute> attributes,
                                               java.lang.String subjectId,
                                               java.lang.String subjectDomain,
                                               java.lang.String originIssuer,
                                               java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens)
Request user attributes to the Identity Aggregator sending an SAMLAttributeQuery.

Parameters:
request - HttpServletRequest
response - HttpServletResponse
attributes - Attributes which desire requesting. If null, a general SAMLAttributeQuery will be sent trying to recover all attributes associated to a user.
subjectId - Id of the user.
subjectDomain - Domain which will be recovered user attributes.
originIssuer - Origin issuer of the request.
tokens - List of tokens indicating the user has previously authenticated or authorized.
Returns:
RequestResult indicating the result of the request, and the ID of the request in order to associate the response with this request.

requestAttributeAssertion

public RequestResult requestAttributeAssertion(javax.servlet.http.HttpServletRequest request,
                                               javax.servlet.http.HttpServletResponse response,
                                               java.util.List<eu.semiramis.identityaggregator.commons.Attribute> attributes,
                                               java.lang.String subjectId,
                                               java.lang.String subjectDomain,
                                               java.io.File attrEncrX509Cert,
                                               java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens)
Request user attributes to the Identity Aggregator sending an SAMLAttributeQuery.

Parameters:
request - HttpServletRequest
response - HttpServletResponse
attributes - Attributes which desire requesting. If null, a general SAMLAttributeQuery will be sent trying to recover all attributes associated to a user.
subjectId - Id of the user.
subjectDomain - Domain which will be recovered user attributes.
attrEncrX509Cert - X509 certificate to be used for attribute encryption.
tokens - List of tokens indicating the user has previously authenticated or authorized.
Returns:
RequestResult indicating the result of the request, and the ID of the request in order to associate the response with this request.

requestAttributeAssertion

public RequestResult requestAttributeAssertion(javax.servlet.http.HttpServletRequest request,
                                               javax.servlet.http.HttpServletResponse response,
                                               java.util.List<eu.semiramis.identityaggregator.commons.Attribute> attributes,
                                               java.lang.String subjectId,
                                               java.lang.String subjectDomain,
                                               java.lang.String originIssuer,
                                               java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens,
                                               eu.semiramis.commons.audit.Transaction auditTransaction)
Request user attributes to the Identity Aggregator sending an SAMLAttributeQuery.

Parameters:
request - HttpServletRequest
response - HttpServletResponse
attributes - Attributes which desire requesting. If null, a general SAMLAttributeQuery will be sent trying to recover all attributes associated to a user.
subjectId - Id of the user.
subjectDomain - Domain which will be recovered user attributes.
originIssuer - Origin issuer of the request.
tokens - List of tokens indicating the user has previously authenticated or authorized.
Returns:
RequestResult indicating the result of the request, and the ID of the request in order to associate the response with this request.

requestAttributeAssertion

public RequestResult requestAttributeAssertion(javax.servlet.http.HttpServletRequest request,
                                               javax.servlet.http.HttpServletResponse response,
                                               java.util.List<eu.semiramis.identityaggregator.commons.Attribute> attributes,
                                               java.lang.String subjectId,
                                               java.lang.String subjectDomain,
                                               java.io.File attrEncrX509Cert,
                                               java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens,
                                               eu.semiramis.commons.audit.Transaction auditTransaction)
Request user attributes to the Identity Aggregator sending an SAMLAttributeQuery.

Parameters:
request - HttpServletRequest
response - HttpServletResponse
attributes - Attributes which desire requesting. If null, a general SAMLAttributeQuery will be sent trying to recover all attributes associated to a user.
subjectId - Id of the user.
subjectDomain - Domain which will be recovered user attributes.
attrEncrX509Cert - X509 certificate to be used for attribute encryption.
tokens - List of tokens indicating the user has previously authenticated or authorized.
Returns:
RequestResult indicating the result of the request, and the ID of the request in order to associate the response with this request.

requestAttributeAssertion

public RequestResult requestAttributeAssertion(javax.servlet.http.HttpServletRequest request,
                                               javax.servlet.http.HttpServletResponse response,
                                               java.util.List<eu.semiramis.identityaggregator.commons.Attribute> attributes,
                                               java.lang.String subjectId,
                                               java.lang.String subjectDomain,
                                               java.lang.String originIssuer,
                                               java.security.cert.X509Certificate attrEncrX509Cert,
                                               java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens)
Request user attributes to the Identity Aggregator sending an SAMLAttributeQuery.

Parameters:
request - HttpServletRequest
response - HttpServletResponse
attributes - Attributes which desire requesting. If null, a general SAMLAttributeQuery will be sent trying to recover all attributes associated to a user.
subjectId - Id of the user.
subjectDomain - Domain which will be recovered user attributes.
originIssuer - Origin issuer of the request.
attrEncrX509Cert - X509 certificate to be used for attribute encryption.
tokens - List of tokens indicating the user has previously authenticated or authorized.
Returns:
RequestResult indicating the result of the request, and the ID of the request in order to associate the response with this request.

requestAttributeAssertion

public RequestResult requestAttributeAssertion(javax.servlet.http.HttpServletRequest request,
                                               javax.servlet.http.HttpServletResponse response,
                                               java.util.List<eu.semiramis.identityaggregator.commons.Attribute> attributes,
                                               java.lang.String subjectId,
                                               java.lang.String subjectDomain,
                                               java.lang.String originIssuer,
                                               java.security.cert.X509Certificate attrEncrX509Cert,
                                               java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens,
                                               eu.semiramis.commons.audit.Transaction auditTransaction)
Request user attributes to the Identity Aggregator sending an SAMLAttributeQuery.

Parameters:
request - HttpServletRequest
response - HttpServletResponse
attributes - Attributes which desire requesting. If null, a general SAMLAttributeQuery will be sent trying to recover all attributes associated to a user.
subjectId - Id of the user.
subjectDomain - Domain which will be recovered user attributes.
originIssuer - Origin issuer of the request.
attrEncrX509Cert - X509 certificate to be used for attribute encryption.
tokens - List of tokens indicating the user has previously authenticated or authorized.
Returns:
RequestResult indicating the result of the request, and the ID of the request in order to associate the response with this request.

requestAttributeAssertion

public RequestResult requestAttributeAssertion(java.lang.String requestURL,
                                               javax.servlet.http.HttpServletResponse response,
                                               java.util.List<eu.semiramis.identityaggregator.commons.Attribute> attributes,
                                               java.lang.String subjectId,
                                               java.lang.String subjectDomain,
                                               java.lang.String originIssuer,
                                               java.security.cert.X509Certificate attrEncrX509Cert,
                                               java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens,
                                               eu.semiramis.commons.audit.Transaction auditTransaction)
Request user attributes to the Identity Aggregator sending an SAMLAttributeQuery.

Parameters:
requestURL - HttpServletRequest URL
response - HttpServletResponse
attributes - Attributes which desire requesting. If null, a general SAMLAttributeQuery will be sent trying to recover all attributes associated to a user.
subjectId - Id of the user.
subjectDomain - Domain which will be recovered user attributes.
originIssuer - Origin issuer of the request.
attrEncrX509Cert - X509 certificate to be used for attribute encryption.
tokens - List of tokens indicating the user has previously authenticated or authorized.
Returns:
RequestResult indicating the result of the request, and the ID of the request in order to associate the response with this request.

requestAuthorizationToken

public RequestResult requestAuthorizationToken(javax.servlet.http.HttpServletRequest request,
                                               javax.servlet.http.HttpServletResponse response,
                                               java.lang.String subjectId,
                                               java.lang.String action,
                                               java.lang.String resource)
Request authorization for a subject to perform an action over a resource. This method send a SAMLAuthorizationQuery to the Identity Aggregator.

Parameters:
request - HTTPServletRequest
response - HTTPServletResponse
subjectId - subject which will perform the action.
action - action which will be performed
resource - resource which action will be performed.
Returns:
RequestResult indicating the result of the request, and the ID of the request in order to associate the response with this request.

requestAuthorizationToken

public RequestResult requestAuthorizationToken(javax.servlet.http.HttpServletRequest request,
                                               javax.servlet.http.HttpServletResponse response,
                                               java.lang.String subjectId,
                                               java.lang.String action,
                                               java.lang.String resource,
                                               eu.semiramis.commons.audit.Transaction auditTransaction)
Request authorization for a subject to perform an action over a resource. This method send a SAMLAuthorizationQuery to the Identity Aggregator.

Parameters:
request - HTTPServletRequest
response - HTTPServletResponse
subjectId - subject which will perform the action.
action - action which will be performed
resource - resource which action will be performed.
auditTransaction - transaction to be used for auditing
Returns:
RequestResult indicating the result of the request, and the ID of the request in order to associate the response with this request.

requestAuthorizationToken

public RequestResult requestAuthorizationToken(javax.servlet.http.HttpServletRequest request,
                                               javax.servlet.http.HttpServletResponse response,
                                               java.lang.String action,
                                               java.lang.String resource,
                                               java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens)
Request authorization for a subject to perform an action over a resource. This method send a SAMLAuthorizationQuery to the Identity Aggregator.

Parameters:
request - HTTPServletRequest
response - HTTPServletResponse
action - action which will be performed
resource - resource on which action will be performed.
tokens - List of tokens indicating the user has previously authenticated or authorized.
Returns:
RequestResult indicating the result of the request, and the ID of the request in order to associate the response with this request.

requestAuthorizationToken

public RequestResult requestAuthorizationToken(javax.servlet.http.HttpServletRequest request,
                                               javax.servlet.http.HttpServletResponse response,
                                               java.lang.String action,
                                               java.lang.String resource,
                                               java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens,
                                               eu.semiramis.commons.audit.Transaction auditTransaction)
Request authorization for a subject to perform an action over a resource. This method send a SAMLAuthorizationQuery to the Identity Aggregator.

Parameters:
request - HTTPServletRequest
response - HTTPServletResponse
action - action which will be performed
resource - resource on which action will be performed.
tokens - List of tokens indicating the user has previously authenticated or authorized.
auditTransaction - transaction to be used for auditing
Returns:
RequestResult indicating the result of the request, and the ID of the request in order to associate the response with this request.

requestAuthorizationToken

public RequestResult requestAuthorizationToken(javax.servlet.http.HttpServletRequest request,
                                               javax.servlet.http.HttpServletResponse response,
                                               java.lang.String subjectId,
                                               java.lang.String subjectDomain,
                                               java.lang.String action,
                                               java.lang.String resource,
                                               java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens)
Request authorization for a subject to perform an action over a resource. This method send a SAMLAuthorizationQuery to the Identity Aggregator.

Parameters:
request - HTTPServletRequest
response - HTTPServletResponse
subjectId - subject which will perform the action.
subjectDomain - Domain where this request will be redirected.
action - action which will be performed
resource - resource on which action will be performed.
tokens - List of tokens indicating the user has previously authenticated or authorized.
Returns:
RequestResult indicating the result of the request, and the ID of the request in order to associate the response with this request.

requestAuthorizationToken

public RequestResult requestAuthorizationToken(javax.servlet.http.HttpServletRequest request,
                                               javax.servlet.http.HttpServletResponse response,
                                               java.lang.String subjectId,
                                               java.lang.String subjectDomain,
                                               java.lang.String action,
                                               java.lang.String resource,
                                               java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens,
                                               eu.semiramis.commons.audit.Transaction auditTransaction)
Request authorization for a subject to perform an action over a resource. This method send a SAMLAuthorizationQuery to the Identity Aggregator.

Parameters:
request - HTTPServletRequest
response - HTTPServletResponse
subjectId - subject which will perform the action.
subjectDomain - Domain where this request will be redirected.
action - action which will be performed
resource - resource on which action will be performed.
tokens - List of tokens indicating the user has previously authenticated or authorized.
auditTransaction - transaction to be used for auditing
Returns:
RequestResult indicating the result of the request, and the ID of the request in order to associate the response with this request.

requestAuthorizationToken

public RequestResult requestAuthorizationToken(javax.servlet.http.HttpServletRequest request,
                                               javax.servlet.http.HttpServletResponse response,
                                               java.lang.String subjectId,
                                               java.lang.String subjectDomain,
                                               java.lang.String action,
                                               java.lang.String resource,
                                               java.lang.String originIssuer,
                                               java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens)
Request authorization for a subject to perform an action over a resource. This method send a SAMLAuthorizationQuery to the Identity Aggregator.

Parameters:
request - HTTPServletRequest
response - HTTPServletResponse
subjectId - subject which will perform the action.
subjectDomain - Domain where this request will be redirected.
action - action which will be performed
resource - resource on which action will be performed.
originIssuer - Origin issuer of the request.
tokens - List of tokens indicating the user has previously authenticated or authorized.
Returns:
RequestResult indicating the result of the request, and the ID of the request in order to associate the response with this request.

requestAuthorizationToken

public RequestResult requestAuthorizationToken(javax.servlet.http.HttpServletRequest request,
                                               javax.servlet.http.HttpServletResponse response,
                                               java.lang.String subjectId,
                                               java.lang.String subjectDomain,
                                               java.lang.String action,
                                               java.lang.String resource,
                                               java.lang.String originIssuer,
                                               java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens,
                                               eu.semiramis.commons.audit.Transaction auditTransaction)
Request authorization for a subject to perform an action over a resource. This method send a SAMLAuthorizationQuery to the Identity Aggregator.

Parameters:
request - HTTPServletRequest
response - HTTPServletResponse
subjectId - subject which will perform the action.
subjectDomain - Domain where this request will be redirected.
action - action which will be performed
resource - resource on which action will be performed.
originIssuer - Origin issuer of the request.
tokens - List of tokens indicating the user has previously authenticated or authorized.
auditTransaction - transaction to be used for auditing
Returns:
RequestResult indicating the result of the request, and the ID of the request in order to associate the response with this request.

containsResponse

public boolean containsResponse(javax.servlet.http.HttpServletRequest request)
checks if the incoming request contains a SAMLResponse

Parameters:
request -
Returns:

processResponse

public ResponseStruct processResponse(javax.servlet.http.HttpServletRequest request)
                               throws TokenException
Get authentication and authorization tokens or attributes contained in the incoming request

Parameters:
request -
Returns:
ResponseStruct contained
Throws:
TokenException

processResponse

public ResponseStruct processResponse(javax.servlet.http.HttpServletRequest request,
                                      eu.semiramis.commons.audit.Transaction auditTransaction)
                               throws TokenException
Get authentication and authorization tokens or attributes contained in the incoming request

Parameters:
request -
auditTransaction - transaction to be used for auditing
Returns:
ResponseStruct contained
Throws:
TokenException

getSubjectId

public java.lang.String getSubjectId(eu.semiramis.identityaggregator.commons.Token token)
Gets the subject pseudonym through a token

Parameters:
token - Token containing information related with the user
Returns:
pseudonym of the user

validateToken

public boolean validateToken(eu.semiramis.identityaggregator.commons.Token token)
Checks if a token is valid. That is, it is propperly signed and it is still valid. It also checks if the token has been issued by a relying party.

Parameters:
token - Token which will be validated.
Returns:
true if is still valid, false otherwise.

validateToken

public boolean validateToken(javax.servlet.http.HttpServletRequest request,
                             eu.semiramis.identityaggregator.commons.Token token)
Checks if a token is valid. That is, it is propperly signed and it is still valid. It also checks if the token has been issued by a relying party.

Parameters:
request - HttpServletRequest
token - Token which will be validated.
Returns:
true if is still valid, false otherwise.

validateToken

public boolean validateToken(eu.semiramis.identityaggregator.commons.Token token,
                             eu.semiramis.commons.audit.Transaction auditTransaction)
Checks if a token is valid. That is, it is propperly signed and it is still valid. It also checks if the token has been issued by a relying party.

Parameters:
token - Token which will be validated.
auditTransaction - transaction to be used for auditing
Returns:
true if is still valid, false otherwise.

resolveIDMapping

public java.lang.String resolveIDMapping(java.lang.String id)
Having a pseudonym, this method asks for real or domain specific identifier of a subject.

Parameters:
id - subject id.
Returns:
The real or domain specific identifier of the user.

getIaUrl

public java.lang.String getIaUrl()
Gets the URL of the Identity Aggregator indicating where the messages will be sent.

Returns:

setIaId

public void setIaId(java.lang.String iaId)

getIaId

public java.lang.String getIaId()

sendResponse

public org.opensaml.saml2.core.Response sendResponse(java.lang.String requestId,
                                                     java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens,
                                                     javax.servlet.http.HttpServletResponse response,
                                                     java.lang.String providerId,
                                                     java.lang.String providerCSUrl)
                                              throws java.lang.Exception
Throws:
java.lang.Exception

sendResponse

public org.opensaml.saml2.core.Response sendResponse(java.lang.String requestId,
                                                     java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens,
                                                     javax.servlet.http.HttpServletRequest request,
                                                     javax.servlet.http.HttpServletResponse response,
                                                     java.lang.String providerId,
                                                     java.lang.String providerCSUrl)
                                              throws java.lang.Exception
Throws:
java.lang.Exception

sendResponse

public org.opensaml.saml2.core.Response sendResponse(java.lang.String requestId,
                                                     java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens,
                                                     javax.servlet.http.HttpServletResponse response,
                                                     java.lang.String providerId,
                                                     java.lang.String providerCSUrl,
                                                     eu.semiramis.commons.audit.Transaction auditTransaction)
                                              throws java.lang.Exception
Throws:
java.lang.Exception

sendResponse

public org.opensaml.saml2.core.Response sendResponse(java.lang.String requestId,
                                                     java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens,
                                                     javax.servlet.http.HttpServletResponse response,
                                                     java.lang.String statusCode,
                                                     java.lang.String providerId,
                                                     java.lang.String providerCSUrl)
                                              throws java.lang.Exception
Throws:
java.lang.Exception

sendResponse

public org.opensaml.saml2.core.Response sendResponse(java.lang.String requestId,
                                                     java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens,
                                                     javax.servlet.http.HttpServletResponse response,
                                                     java.lang.String statusCode,
                                                     java.lang.String statusMessage,
                                                     java.lang.String providerId,
                                                     java.lang.String providerCSUrl)
                                              throws java.lang.Exception
Throws:
java.lang.Exception

sendResponse

public org.opensaml.saml2.core.Response sendResponse(java.lang.String requestId,
                                                     java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens,
                                                     javax.servlet.http.HttpServletRequest request,
                                                     javax.servlet.http.HttpServletResponse response,
                                                     java.lang.String statusCode,
                                                     java.lang.String providerId,
                                                     java.lang.String providerCSUrl)
                                              throws java.lang.Exception
Throws:
java.lang.Exception

sendResponse

public org.opensaml.saml2.core.Response sendResponse(java.lang.String requestId,
                                                     java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens,
                                                     javax.servlet.http.HttpServletRequest request,
                                                     javax.servlet.http.HttpServletResponse response,
                                                     java.lang.String statusCode,
                                                     java.lang.String statusMessage,
                                                     java.lang.String providerId,
                                                     java.lang.String providerCSUrl)
                                              throws java.lang.Exception
Throws:
java.lang.Exception

sendResponse

public org.opensaml.saml2.core.Response sendResponse(java.lang.String requestId,
                                                     java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens,
                                                     javax.servlet.http.HttpServletResponse response,
                                                     java.lang.String statusCode,
                                                     java.lang.String providerId,
                                                     java.lang.String providerCSUrl,
                                                     eu.semiramis.commons.audit.Transaction auditTransaction)
                                              throws java.lang.Exception
Throws:
java.lang.Exception

sendResponse

public org.opensaml.saml2.core.Response sendResponse(java.lang.String requestId,
                                                     java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens,
                                                     javax.servlet.http.HttpServletResponse response,
                                                     java.lang.String statusCode,
                                                     java.lang.String statusMessage,
                                                     java.lang.String providerId,
                                                     java.lang.String providerCSUrl,
                                                     eu.semiramis.commons.audit.Transaction auditTransaction)
                                              throws java.lang.Exception
Throws:
java.lang.Exception

getResponseURL

public java.lang.String getResponseURL()

setResponseURL

public void setResponseURL(java.lang.String responseURL)

requestAttributes

public RequestResult requestAttributes(javax.servlet.http.HttpServletRequest request,
                                       javax.servlet.http.HttpServletResponse response,
                                       java.lang.String subjectId,
                                       java.util.List<java.lang.String> attributeNames)
Deprecated. Replaced by requestAttributeAssertion().

Request user attributes to the Identity Aggregator sending an SAMLAttributeQuery.

Parameters:
request - HttpServletRequest
response - HttpServletResponse
subjectId - Id of the user
attributes - Attributes which desire requesting. If null, a general SAMLAttributeQuery will be sent trying to recover all attributes associated to a user.
Returns:
RequestResult indicating the result of the request, and the ID of the request in order to associate the response with this request.

requestAttributes

public RequestResult requestAttributes(javax.servlet.http.HttpServletRequest request,
                                       javax.servlet.http.HttpServletResponse response,
                                       java.lang.String subjectId,
                                       java.util.List<java.lang.String> attributeNames,
                                       eu.semiramis.commons.audit.Transaction auditTransaction)
Deprecated. Replaced by requestAttributeAssertion().

Request user attributes to the Identity Aggregator sending an SAMLAttributeQuery.

Parameters:
request - HttpServletRequest
response - HttpServletResponse
subjectId - Id of the user
attributes - Attributes which desire requesting. If null, a general SAMLAttributeQuery will be sent trying to recover all attributes associated to a user.
auditTransaction - transaction to be used for auditing
Returns:
RequestResult indicating the result of the request, and the ID of the request in order to associate the response with this request.

requestAttributes

public RequestResult requestAttributes(javax.servlet.http.HttpServletRequest request,
                                       javax.servlet.http.HttpServletResponse response,
                                       java.util.List<java.lang.String> attributeNames,
                                       java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens)
Deprecated. Replaced by requestAttributeAssertion().

Request user attributes to the Identity Aggregator sending an SAMLAttributeQuery.

Parameters:
request - HttpServletRequest
response - HttpServletResponse
attributes - Attributes which desire requesting. If null, a general SAMLAttributeQuery will be sent trying to recover all attributes associated to a user.
tokens - List of tokens indicating the user has previously authenticated or authorized.
Returns:
RequestResult indicating the result of the request, and the ID of the request in order to associate the response with this request.

requestAttributes

public RequestResult requestAttributes(javax.servlet.http.HttpServletRequest request,
                                       javax.servlet.http.HttpServletResponse response,
                                       java.util.List<java.lang.String> attributeNames,
                                       java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens,
                                       eu.semiramis.commons.audit.Transaction auditTransaction)
Deprecated. Replaced by requestAttributeAssertion().

Request user attributes to the Identity Aggregator sending an SAMLAttributeQuery.

Parameters:
request - HttpServletRequest
response - HttpServletResponse
attributes - Attributes which desire requesting. If null, a general SAMLAttributeQuery will be sent trying to recover all attributes associated to a user.
tokens - List of tokens indicating the user has previously authenticated or authorized.
auditTransaction - transaction to be used for auditing
Returns:
RequestResult indicating the result of the request, and the ID of the request in order to associate the response with this request.

requestAttributes

public RequestResult requestAttributes(javax.servlet.http.HttpServletRequest request,
                                       javax.servlet.http.HttpServletResponse response,
                                       java.util.List<java.lang.String> attributeNames,
                                       java.lang.String subjectId,
                                       java.lang.String subjectDomain,
                                       java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens)
Deprecated. Replaced by requestAttributeAssertion().

Request user attributes to the Identity Aggregator sending an SAMLAttributeQuery.

Parameters:
request - HttpServletRequest
response - HttpServletResponse
attributes - Attributes which desire requesting. If null, a general SAMLAttributeQuery will be sent trying to recover all attributes associated to a user.
subjectId - Id of the user.
subjectDomain - Domain which will be recovered user attributes.
tokens - List of tokens indicating the user has previously authenticated or authorized.
Returns:
RequestResult indicating the result of the request, and the ID of the request in order to associate the response with this request.

requestAttributes

public RequestResult requestAttributes(javax.servlet.http.HttpServletRequest request,
                                       javax.servlet.http.HttpServletResponse response,
                                       java.util.List<java.lang.String> attributeNames,
                                       java.lang.String subjectId,
                                       java.lang.String subjectDomain,
                                       java.util.List<eu.semiramis.identityaggregator.commons.Token> tokens,
                                       eu.semiramis.commons.audit.Transaction auditTransaction)
Deprecated. Replaced by requestAttributeAssertion().

Request user attributes to the Identity Aggregator sending an SAMLAttributeQuery.

Parameters:
request - HttpServletRequest
response - HttpServletResponse
attributes - Attributes which desire requesting. If null, a general SAMLAttributeQuery will be sent trying to recover all attributes associated to a user.
subjectId - Id of the user.
subjectDomain - Domain which will be recovered user attributes.
tokens - List of tokens indicating the user has previously authenticated or authorized.
auditTransaction - transaction to be used for auditing
Returns:
RequestResult indicating the result of the request, and the ID of the request in order to associate the response with this request.