|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object at.gv.egovernment.moa.id.auth.AuthenticationServer
API for MOA ID Authentication Service.
AuthenticationSession
is stored in a session store and retrieved
by giving the session ID.
Constructor Summary | |
AuthenticationServer()
Constructor for AuthenticationServer. |
Method Summary | |
void |
cleanup()
Cleans up expired session and authentication data stores. |
static void |
debugOutputXMLFile(String filename,
org.w3c.dom.Element rootElem)
Writes an XML structure to file for debugging purposes, encoding UTF-8. |
static void |
debugOutputXMLFile(String filename,
String xmlString)
Writes an XML structure to file for debugging purposes, encoding UTF-8. |
AuthenticationData |
getAuthenticationData(String samlArtifact)
Retrieves AuthenticationData indexed by the SAML artifact.
|
static AuthenticationServer |
getInstance()
Returns the single instance of AuthenticationServer . |
static AuthenticationSession |
getSession(String id)
Retrieves a session from the session store. |
String |
selectBKU(String authURL,
String target,
String oaURL,
String bkuSelectionTemplateURL,
String templateURL)
Processes request to select a BKU. |
void |
setSecondsAuthDataTimeOut(long seconds)
Sets the authDataTimeOut. |
void |
setSecondsSessionTimeOut(long seconds)
Sets the sessionTimeOut. |
String |
startAuthentication(String authURL,
String target,
String oaURL,
String templateURL,
String bkuURL,
String sessionID)
Processes the beginning of an authentication session. |
String |
verifyAuthenticationBlock(String sessionID,
String xmlCreateXMLSignatureReadResponse)
Processes a <CreateXMLSignatureResponse> sent by the
security layer implementation. |
String |
verifyIdentityLink(String sessionID,
String xmlInfoboxReadResponse)
Processes an <InfoboxReadResponse> sent by the
security layer implementation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AuthenticationServer()
Method Detail |
public static AuthenticationServer getInstance()
AuthenticationServer
.
AuthenticationServer
public String selectBKU(String authURL, String target, String oaURL, String bkuSelectionTemplateURL, String templateURL) throws WrongParametersException, AuthenticationException, ConfigurationException, BuildException
AuthConfigurationProvider#getBKUSelectionType
.
bkuSelectionType==HTMLComplete
, a returnURI
for the
"BKU Auswahl" service is returned.
bkuSelectionType==HTMLSelect
, an HTML form for BKU selection is returned.
authURL
- base URL of MOA-ID Auth componenttarget
- "Geschäftsbereich"oaURL
- online application URL requestedbkuSelectionTemplateURL
- template for BKU selection form to be used
in case of HTMLSelect
; may be nulltemplateURL
- URL providing an HTML template for the HTML form to be used
for call startAuthentication
bkuSelectionType==HTMLComplete
, the returnURI
for the
"BKU Auswahl" service;
for bkuSelectionType==HTMLSelect
, an HTML form for BKU selection
WrongParametersException
- upon missing parameters
AuthenticationException
- when the configured BKU selection service cannot be reached,
and when the given bkuSelectionTemplateURL cannot be reached
ConfigurationException
- on missing configuration data
BuildException
- while building the HTML formpublic String startAuthentication(String authURL, String target, String oaURL, String templateURL, String bkuURL, String sessionID) throws WrongParametersException, AuthenticationException, ConfigurationException, BuildException
<InfoboxReadRequest>
<InfoboxReadRequest>
authURL
- URL of the servlet to be used as data URLtarget
- "Geschäftsbereich" of the online application requestedoaURL
- online application URL requestedbkuURL
- URL of the "Bürgerkartenumgebung" to be used;
may be null
; in this case, the default location will be usedtemplateURL
- URL providing an HTML template for the HTML form generated
AuthenticationException
WrongParametersException
ConfigurationException
BuildException
GetIdentityLinkFormBuilder
,
InfoboxReadRequestBuilder
public String verifyIdentityLink(String sessionID, String xmlInfoboxReadResponse) throws AuthenticationException, ParseException, ConfigurationException, ValidateException, ServiceException
<InfoboxReadResponse>
sent by the
security layer implementation.<InfoboxReadResponse>
<InfoboxReadResponse>
<CreateXMLSignatureRequest>
containg the authentication block, meant to be returned to the
security layer implementation
sessionID
- ID of associated authentication session dataxmlInfoboxReadResponse
- String representation of the
<InfoboxReadResponse>
<CreateXMLSignatureRequest>
AuthenticationException
ParseException
ConfigurationException
ValidateException
ServiceException
public String verifyAuthenticationBlock(String sessionID, String xmlCreateXMLSignatureReadResponse) throws AuthenticationException, BuildException, ParseException, ConfigurationException, ServiceException, ValidateException
<CreateXMLSignatureResponse>
sent by the
security layer implementation.<CreateXMLSignatureResponse>
<CreateXMLSignatureResponse>
for error codes<CreateXMLSignatureResponse>
sessionID
- session ID of the running authentication sessionxmlCreateXMLSignatureReadResponse
- String representation of the
<CreateXMLSignatureResponse>
AuthenticationException
BuildException
ParseException
ConfigurationException
ServiceException
ValidateException
public AuthenticationData getAuthenticationData(String samlArtifact) throws AuthenticationException
AuthenticationData
indexed by the SAML artifact.
The AuthenticationData
is deleted from the store upon end of this call.
AuthenticationData
AuthenticationException
public static AuthenticationSession getSession(String id) throws AuthenticationException
id
- session ID
AuthenticationSession
stored with given session ID,
null
if session ID unknown
AuthenticationException
public void cleanup()
public void setSecondsSessionTimeOut(long seconds)
public void setSecondsAuthDataTimeOut(long seconds)
public static void debugOutputXMLFile(String filename, org.w3c.dom.Element rootElem)
filename
- file namerootElem
- root element in DOM treepublic static void debugOutputXMLFile(String filename, String xmlString)
filename
- file namexmlString
- XML string
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |