public class XMLDocAuthenticator extends Object implements Authenticator
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log |
Constructor and Description |
---|
XMLDocAuthenticator() |
XMLDocAuthenticator(boolean b)
an empty constructor
|
Modifier and Type | Method and Description |
---|---|
String |
authenticate(String userID,
String credential)
This function is called from the Security API's GetAuthToken().
|
protected String |
getFilename() |
UddiEntityPublisher |
identify(String authInfo,
String authorizedName,
WebServiceContext ctx) |
void |
readUserFile()
Read user data from the juddi-users file.
|
public XMLDocAuthenticator() throws JAXBException, IOException, org.apache.commons.configuration.ConfigurationException
JAXBException
IOException
org.apache.commons.configuration.ConfigurationException
public XMLDocAuthenticator(boolean b)
protected String getFilename() throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void readUserFile() throws JAXBException, IOException, org.apache.commons.configuration.ConfigurationException
IOException
- when the file cannot be opened JAXBException when
the content is malformed.org.apache.commons.configuration.ConfigurationException
JAXBException
public String authenticate(String userID, String credential) throws AuthenticationException, FatalErrorException
Authenticator
authenticate
in interface Authenticator
userID
- credential
- AuthenticationException
FatalErrorException
public UddiEntityPublisher identify(String authInfo, String authorizedName, WebServiceContext ctx) throws AuthenticationException
identify
in interface Authenticator
AuthenticationException
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.