|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ManagerServiceClient com.adobe.livecycle.usermanager.client.AuthenticationManagerServiceClient
public class AuthenticationManagerServiceClient
This is the client implementation of the AuthenticationManager
class.
AuthenticationManager
Constructor Summary | |
---|---|
AuthenticationManagerServiceClient(ServiceClientFactory serviceClientFactory)
Authentication manager service client constructor. |
Method Summary | |
---|---|
AuthResult |
authenticate(byte[] ssoToken,
boolean createAssertion)
Authenticates a LiveCycle user using a single sign-on (SSO) servlet. |
AuthResult |
authenticate(org.w3c.dom.Element wssecHeaderElement)
Authenticates a LiveCycle user using a WS-Security header element in a SOAP request. |
AuthResult |
authenticate(java.lang.String wssecHeader)
Authenticates a LiveCycle user using a WS-Security header in a SOAP request. |
AuthResult |
authenticate(java.lang.String username,
byte[] password)
Authenticates a LiveCycle user. |
AuthResult |
authenticate(java.lang.String unsignedData,
java.lang.String signatureValue)
Authenticates a LiveCycle user using certificate-based authentication. |
AuthResult |
getAuthResultOnBehalfOfUser(java.lang.String canonicalName,
java.lang.String domainName,
Context caller)
This method retrieves an authentication result on behalf of a user. |
java.util.List |
getAuthSchemes()
This method retrieves a List of all the authentication schemes. |
SSOToken |
getSSOToken(Context context)
Retrieves the single sign-on (SSO) token used in the SSO servlet. |
byte[] |
getSSOTokenBytes(Context context)
Retrieves a byte array representing the single sign-on (SSO) token used in the SSO servlet. |
Context |
validateAssertion(Context ctx)
This method creates and returns a Context after validating the assertion contained in the context. |
AuthResult |
validateAssertion(java.lang.String assertion)
This method creates and returns an authentication result after validating the assertion. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.adobe.idp.um.api.AuthenticationManager |
---|
authenticate, authenticate, authenticate, authenticate, renewAssertion |
Constructor Detail |
---|
public AuthenticationManagerServiceClient(ServiceClientFactory serviceClientFactory)
serviceClientFactory
- The service client factory.Method Detail |
---|
public AuthResult authenticate(java.lang.String username, byte[] password) throws UMException
Context
instance.
To see this method used in a code example, see the Authenticating a user using the Java API quick start in Programming with LiveCycle ES4.
authenticate
in interface AuthenticationManager
username
- A string value that specifies the user name.password
- A byte array that specifies the user password.
AuthResult
object that represents the authentication result.
UMException
- If the user was not authenticated.Context
public AuthResult authenticate(byte[] ssoToken, boolean createAssertion) throws UMException
authenticate
in interface AuthenticationManager
ssoToken
- A byte array that represents the SSO token.createAssertion
- A boolean value that specifies whether an assertion is created.
AuthResult
object that represents the authentication result.
UMException
public AuthResult authenticate(java.lang.String wssecHeader) throws UMException
authenticate
in interface AuthenticationManager
wssecHeader
- A string value that specifies the WS-Security header.
AuthResult
object that represents the authentication result.
UMException
- If the user was not authenticated.Context
public AuthResult getAuthResultOnBehalfOfUser(java.lang.String canonicalName, java.lang.String domainName, Context caller) throws UMException
getAuthResultOnBehalfOfUser
in interface AuthenticationManager
canonicalName
- The canonical name of the user.domainName
- The domain name to which the user belongs. This parameter is case sensitive.
For example, the domain names "adobe"
and "Adobe"
would be treated differently.caller
- The context of the caller.
UMException
public SSOToken getSSOToken(Context context) throws UMException
getSSOToken
in interface AuthenticationManager
context
- A Context
object that represents the context.
SSOToken
object that represents the SSO token.
UMException
public byte[] getSSOTokenBytes(Context context) throws UMException
getSSOTokenBytes
in interface AuthenticationManager
context
- The context.
UMException
public AuthResult authenticate(org.w3c.dom.Element wssecHeaderElement) throws UMException
Context
instance.
authenticate
in interface AuthenticationManager
wssecHeaderElement
- The WS-Security header element.
AuthResult
object that represents the authentication result.
UMException
- If the user was not authenticated.Context
public AuthResult authenticate(java.lang.String unsignedData, java.lang.String signatureValue) throws UMException
Context
instance.
authenticate
in interface AuthenticationManager
unsignedData
- The unsigned data used in certificate-based authentication.signatureValue
- A base64-encoded, PKCS7-Detached digital signature.
AuthResult
object that represents the authentication result.
UMException
- If the user was not authenticated.Context
public java.util.List getAuthSchemes() throws UMException
List
of all the authentication schemes.
getAuthSchemes
in interface AuthenticationManager
List
containing all the authentication schemes.
UMException
public AuthResult validateAssertion(java.lang.String assertion) throws UMException
validateAssertion
in interface AuthenticationManager
assertion
- The assertion.
UMException
public Context validateAssertion(Context ctx) throws UMException
Context
after validating the assertion contained in the context. Returns the same context back if it is localOnly
validateAssertion
in interface AuthenticationManager
ctx
- The context.
UMException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |