public class Authentication_JAXWS extends Object
The Authentication service provides methods to authenticate the credentials of a user. The credentials are authenticated and a service token is generated. This token must then be passed to each method invocation. The service token is passed in the SOAP header.
You can impersonate a user if you have already authenticated as an Admin user.
Some applications, such as the Enterprise Library, have the concept of an application. You can authenticate a user in the context of an application.
Constructor and Description |
---|
Authentication_JAXWS() |
Modifier and Type | Method and Description |
---|---|
String |
authenticateApplication(String applicationID,
String password)
Authenticates an ApplicationID and returns an application token.
|
String |
authenticateUser(String userName,
String userPassword)
Authenticates a user and returns a service token.
|
String |
authenticateUserWithApplicationToken(String userName,
String userPassword,
String applicationToken)
Authenticates a user with an application token and returns a service token containing both the user and application ID.
|
String |
combineApplicationToken(String applicationToken)
Combines the current login service token with an application token and returns a service token containing both the user and applicationID.
|
String |
getOTDSResourceID()
Returns the configured OTDS Resource ID, if OTDS integration is enabled.
|
String |
getOTDSServer()
Returns the configured OTDS Server, if OTDS integration is enabled.
|
Date |
getSessionExpirationDate()
Gets the expiration date for the current authentication session, if any.
|
String |
impersonateApplication(String applicationID)
Gets an application token for the impersonated application ID.
|
String |
impersonateUser(String userName)
Gets a login token for the impersonated user.
|
String |
refreshToken()
Returns a new authentication token for the current user.
|
String |
validateUser(String capToken)
Authenticates a user using an external authentication token (OTDS or CAP) and returns a login token.
|
public String authenticateApplication(String applicationID, String password)
applicationID
- The application ID.password
- The application password.public String authenticateUser(String userName, String userPassword)
userName
- The user's username.userPassword
- The user's password.SoapFaultException
- with fault codes:public String authenticateUserWithApplicationToken(String userName, String userPassword, String applicationToken)
userName
- The user's username.userPassword
- The user's password.applicationToken
- The application token.public String combineApplicationToken(String applicationToken)
applicationToken
- An application token.public String getOTDSResourceID()
public String getOTDSServer()
public Date getSessionExpirationDate()
public String impersonateApplication(String applicationID)
applicationID
- An application ID.public String impersonateUser(String userName)
userName
- The username of the user to be impersonated.public String refreshToken()
public String validateUser(String capToken)
capToken
- An external authentication token (OTDS or CAP).© Copyright 2017 OpenText Corp. All Rights Reserved.