|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.geant.edugain.base.Request
net.geant.edugain.base.AuthenticationRequest
public class AuthenticationRequest
A request for authentication data about the subject requesting a service. It may imply a redirection to the home domain in order to perform a direct exchange of credentials.
This class extends Request.
| Field Summary | |
|---|---|
private java.lang.String |
authenticatingPrincipal
A string (simple or in URN format) that identifies the principal [username/object] that is requesting the authentication. |
private java.net.URI |
authenticationMethod
URI that identifies a authentication method (e.g. |
private java.lang.String |
authnType
A identification of the protocol used in the authentication. |
private java.util.ArrayList<HomeLocator> |
homeLocators
A list of data that will be used by the Metadata Service to evaluate the request. |
protected java.lang.String |
homeSite
The home site of the user where the request is going to be solved. |
private org.apache.log4j.Logger |
log
|
private java.net.URI |
providerId
The id of the provider who created this authentication request. |
protected java.net.URI |
shire
The URI from where the requester has been redirected to this service. |
private org.opensaml.common.SAMLVersion |
version
The SAML version of the current Authentication Request. |
| Fields inherited from class net.geant.edugain.base.Request |
|---|
cacheReference, consumerId, producerId, requestID, resource |
| Constructor Summary | |
|---|---|
AuthenticationRequest()
Creates a new instance of an AuthenticationRequest object (authentication request). |
|
AuthenticationRequest(org.opensaml.saml2.core.AuthnRequest request)
Creates a new instance of an AuthenticationRequest object (authentication request) based on a given OpenSAML2 AuthnRequest object. |
|
AuthenticationRequest(org.opensaml.SAMLRequest request)
Creates a new instance of an AuthenticationRequest object (authentication request) based on a given SAMLRequest object. |
|
AuthenticationRequest(java.net.URI res)
Creates a new instance of an AuthenticationRequest object (authentication request) for the given resource (expressed as an URI). |
|
| Method Summary | |
|---|---|
void |
fromSAML(org.opensaml.saml2.core.AuthnRequest request)
Fill this AuthenticationRequest from an OpenSAML2
Authentication Request. |
void |
fromSAML(org.opensaml.SAMLRequest sreq)
Fill this AuthenticationRequest from a SAMLRequest |
java.lang.String |
getAuthenticatingPrincipal()
Gets the reference of the subject (principal) that is requesting the authentication. |
java.net.URI |
getAuthMethod()
Gets the authentication method to be used |
java.lang.String |
getAuthType()
Returns the value of the authentication type field |
java.util.ArrayList<HomeLocator> |
getHomeLocators()
Returns the list of home locators |
java.lang.String |
getHomeSite()
Gets the value of the HomeSite |
java.net.URI |
getProviderId()
Gets the identifier of the provider who created this request. |
java.net.URI |
getShire()
Gets the URI from where the requester was redirected to this service |
void |
setAuthenticatingPrincipal(java.lang.String principal)
Sets the reference for the subject (principal) that is requesting the authentication. |
void |
setAuthMethod(java.net.URI method)
Sets the authentication method to be used |
void |
setAuthType(java.lang.String authType)
Sets a value for the authentication type field |
void |
setHomeLocators(java.util.ArrayList<HomeLocator> homeLocators)
Sets the list of home locators |
void |
setHomeSite(java.lang.String homesite)
Sets the HomeSite |
void |
setProviderId(java.net.URI providerId)
Sets the identifier of the provider who created this request. |
void |
setShire(java.net.URI ref)
Sets the URI from where the requester was redirected to this service |
org.opensaml.SAMLRequest |
toSAML()
Converts this eduGAIN AuthenticationRequest object into a SAMLRequest |
| Methods inherited from class net.geant.edugain.base.Request |
|---|
generateRequestID, getCacheReference, getConsumerId, getIssued, getProducerId, getRequestID, getResource, getValidatedTrust, setCacheReference, setConsumerId, setIssued, setProducerId, setRequestID, setRequestID, setResource, setValidatedTrust |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.lang.String authnType
private java.net.URI authenticationMethod
private java.lang.String authenticatingPrincipal
protected java.lang.String homeSite
protected java.net.URI shire
private java.util.ArrayList<HomeLocator> homeLocators
private java.net.URI providerId
private org.opensaml.common.SAMLVersion version
private org.apache.log4j.Logger log
| Constructor Detail |
|---|
public AuthenticationRequest()
public AuthenticationRequest(java.net.URI res)
public AuthenticationRequest(org.opensaml.SAMLRequest request)
throws BaseException
request - the SAML request to translate into eduGAIN
BaseException
public AuthenticationRequest(org.opensaml.saml2.core.AuthnRequest request)
throws BaseException
request - the authentication request to translate into eduGAIN
BaseException| Method Detail |
|---|
public void setAuthMethod(java.net.URI method)
public java.net.URI getAuthMethod()
public void setAuthenticatingPrincipal(java.lang.String principal)
public java.lang.String getAuthenticatingPrincipal()
public void setHomeSite(java.lang.String homesite)
public java.lang.String getHomeSite()
public void setShire(java.net.URI ref)
public java.net.URI getShire()
public java.lang.String getAuthType()
public void setAuthType(java.lang.String authType)
public java.util.ArrayList<HomeLocator> getHomeLocators()
public void setHomeLocators(java.util.ArrayList<HomeLocator> homeLocators)
public java.net.URI getProviderId()
public void setProviderId(java.net.URI providerId)
public void fromSAML(org.opensaml.SAMLRequest sreq)
throws BaseException
AuthenticationRequest from a SAMLRequest
sreq - The SAMLRequest
BaseException
public org.opensaml.SAMLRequest toSAML()
throws BaseException
AuthenticationRequest object into a SAMLRequest
BaseException
public void fromSAML(org.opensaml.saml2.core.AuthnRequest request)
throws BaseException
AuthenticationRequest from an OpenSAML2
Authentication Request.
request - the original Authentication Request.
BaseException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||