|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AuthResponse
The AuthResponse
interface defines a mechanism for an authentication provider
to communicate authentication results to User Management.
If the authentication provider successfully authenticates the user information, it should
communicate the success to User Management along with the authenticated user name, the user
domain, and the authentication type performed.
If the authentication provider cannot authenticate the user information, it should communicate the failure to User Management along with error information. User Management may log the error information.
AuthProvider
Field Summary | |
---|---|
static java.lang.String |
ASSERTION_LIFE
The time in seconds for which the SPI wants LC to issue the assertion. |
static java.lang.String |
AUTH_ERROR
The constant that represents an error in authentication. |
static java.lang.String |
AUTH_FAILED
The constant that represents a failed authentication. |
static java.lang.String |
AUTH_SUCCESS
The constant that represents a successful authentication. |
static java.lang.String |
AUTH_UNRESOLVED
The constant that represents a successful authentication but failed Identity Resolution. |
static java.lang.String |
CONTINUE
A constant that indicates that current authentication flow is not complete and requires some more steps to complete. |
Method Summary | |
---|---|
java.util.Map |
getAuthProviderSpecificTokens()
Retrieves the tokens passed by the authentication provider. |
java.lang.String |
getAuthStatus()
Retrieves the authentication results for this object. |
java.lang.String |
getAuthType()
Retrieves the authentication type for this object. |
java.lang.String |
getDomain()
Retrieves the domain for this AuthResponse object. |
java.lang.String |
getErrorMessage()
Retrieves the error message for this object. |
java.util.List |
getExceptions()
Retrieves the exceptions for this object. |
java.lang.String |
getIssuerCN()
Retrieves the issuer's canonical name. |
java.lang.String |
getKerberosIntermediateTkt()
This method is related to Kerberos authentication and is not useful to implementations of AuthProvider . |
java.lang.String |
getUsername()
Retrieves the login identification for this object. |
boolean |
isEncryptionRequired()
Determines whether the tokens need to be encypted. |
void |
setAuthProviderSpecificTokens(java.util.Map tokens)
Sets the tokens passed by the authentication provider. |
void |
setAuthStatus(java.lang.String result)
Sets the results of the authentication. |
void |
setAuthType(java.lang.String authType)
Sets the type of authentication used. |
void |
setDomain(java.lang.String domain)
Sets the domain associated with the authentication provider that performed the authentication. |
void |
setEncryptionRequired(boolean encryptionRequired)
Sets whether the additional information returned by the authentication provider, in the form of string tokens, need to be encrypted before they become a part of the SAML assertion. |
void |
setErrorMessage(java.lang.String message)
Sets an error message for this object. |
void |
setExceptions(java.util.List exceptions)
Specifies exceptions that occurred during authentication. |
void |
setIssuerCN(java.lang.String issuerCN)
Sets the issuer's canonical name. |
void |
setKerberosIntermediateTkt(java.lang.String tkt)
This method is related to Kerberos authentication and should not be used. |
void |
setUsername(java.lang.String userName)
Sets the login identification used for authentication. |
Field Detail |
---|
static final java.lang.String AUTH_SUCCESS
static final java.lang.String AUTH_FAILED
static final java.lang.String AUTH_ERROR
AuthResponse.AUTH_FAILED
in a way that it should be used
when AuthProvider
gets an unexpected error.
static final java.lang.String CONTINUE
static final java.lang.String AUTH_UNRESOLVED
List
in credential map with key UMAuthenticationUtil.provisionedUserListKey
.
static final java.lang.String ASSERTION_LIFE
java.lang.Integer
Method Detail |
---|
void setExceptions(java.util.List exceptions)
exceptions
- A java.util.List
object that contains the exceptions.java.util.List getExceptions()
java.util.List
object that contains the exceptions.java.lang.String getAuthStatus()
java.lang.String
that contains the authentication result.AuthResponse.AUTH_SUCCESS
,
AuthResponse.AUTH_FAILED
,
AuthResponse.AUTH_ERROR
,
AuthResponse.CONTINUE
void setAuthStatus(java.lang.String result)
result
- A java.lang.String
that contains the authentication results. Use the below mentioned
constants to set the required statusAuthResponse.AUTH_SUCCESS
,
AuthResponse.AUTH_FAILED
,
AuthResponse.AUTH_ERROR
,
AuthResponse.CONTINUE
java.lang.String getErrorMessage()
java.lang.String
that contains the error message.void setErrorMessage(java.lang.String message)
message
- A java.lang.String
that contains the error message.
The maximum length of the message is 250 characters;
errors can occur if greater lengths are used.#setExceptions()
java.lang.String getAuthType()
java.lang.String
that contains the authentication type.void setAuthType(java.lang.String authType)
AuthProvider.authenticate()
method.
authType
- A java.lang.String
that contains the authentication type.java.lang.String getUsername()
java.lang.String
that contains the user name.void setUsername(java.lang.String userName)
AuthProvider.authenticate()
method.
userName
- A java.lang.String
that contains the user name.
The maximum length of the String
you can use is 250 characters or errors can occur.java.lang.String getDomain()
AuthResponse
object.
String
that contains the domain.void setDomain(java.lang.String domain)
domain
- A String
that contains the domain.
The maximum length of the string is 50 characters;
errors can occur if greater lengths are used.AuthConfigBO.getDomainName()
java.lang.String getKerberosIntermediateTkt()
AuthProvider
.
java.lang.String
containing the Kerberos intermediate ticket.void setKerberosIntermediateTkt(java.lang.String tkt)
tkt
- A java.lang.String
containing the Kerberos intermediate ticket.java.lang.String getIssuerCN()
java.lang.String
containing the issuer's canonical name.void setIssuerCN(java.lang.String issuerCN)
issuerCN
- A java.lang.String
containing the issuer's canonical name.void setAuthProviderSpecificTokens(java.util.Map tokens)
AuthResponse
.
tokenList
- A java.util.List
containing the list of string tokens.java.util.Map getAuthProviderSpecificTokens()
AuthResponse
.
java.util.List
containing the list of string tokens.boolean isEncryptionRequired()
true
if the tokens need to be encrypted, false
otherwise.void setEncryptionRequired(boolean encryptionRequired)
encryptionRequired
- true
if the tokens need to be encrypted, false
otherwise.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |