public class RequestAuthenticator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
backendUser |
private static java.lang.String |
CLASSNAME |
(package private) static java.lang.String |
COPYRIGHT |
private static org.apache.log4j.Logger |
logger |
private org.dom4j.Document |
requestDocument |
private java.lang.String |
requestXml |
Constructor and Description |
---|
RequestAuthenticator(org.dom4j.Document theDoc)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
authenticate()
Authenticates the request.
|
protected java.util.List |
buildCredentialList(java.lang.String thePath)
Builds a list of CredentialBean objects.
|
java.lang.String |
getUser() |
static void |
main(java.lang.String[] args)
For testing only.
|
static final java.lang.String COPYRIGHT
private static final java.lang.String CLASSNAME
private static org.apache.log4j.Logger logger
private org.dom4j.Document requestDocument
private java.lang.String requestXml
private java.lang.String backendUser
public RequestAuthenticator(org.dom4j.Document theDoc)
theDoc
- - an already created documentpublic static void main(java.lang.String[] args) throws B2bException
B2bException
public void authenticate() throws AuthenticationException
AuthenticationException
protected java.util.List buildCredentialList(java.lang.String thePath) throws AuthenticationException
thePath
- - the path of the node withing the XMLAuthenticationException
- if duplicate, unmatching identities are
found for the same domainpublic java.lang.String getUser()