public class AuthenticationResult extends Object
AuthenticationProvider
.
The authentication status describes the overall outcome.
Principal
will be populated.
getCause()
will provide the underlying exception.
AuthenticatedPrincipal
to make it easier for the rest of the application to identify it among the set of other principals.Modifier and Type | Class and Description |
---|---|
static class |
AuthenticationResult.AuthenticationStatus |
Constructor and Description |
---|
AuthenticationResult(AuthenticationResult.AuthenticationStatus status) |
AuthenticationResult(AuthenticationResult.AuthenticationStatus error,
Exception cause) |
AuthenticationResult(byte[] challenge,
AuthenticationResult.AuthenticationStatus status) |
AuthenticationResult(byte[] challenge,
AuthenticationResult.AuthenticationStatus status,
Exception cause) |
AuthenticationResult(Principal mainPrincipal) |
AuthenticationResult(Principal mainPrincipal,
byte[] challenge) |
AuthenticationResult(Principal mainPrincipal,
Set<Principal> otherPrincipals,
byte[] challenge) |
Modifier and Type | Method and Description |
---|---|
Exception |
getCause() |
byte[] |
getChallenge() |
Principal |
getMainPrincipal() |
Set<Principal> |
getPrincipals() |
AuthenticationResult.AuthenticationStatus |
getStatus() |
public AuthenticationResult(AuthenticationResult.AuthenticationStatus status)
public AuthenticationResult(Principal mainPrincipal)
public AuthenticationResult(Principal mainPrincipal, byte[] challenge)
public AuthenticationResult(Principal mainPrincipal, Set<Principal> otherPrincipals, byte[] challenge)
public AuthenticationResult(byte[] challenge, AuthenticationResult.AuthenticationStatus status)
public AuthenticationResult(AuthenticationResult.AuthenticationStatus error, Exception cause)
public AuthenticationResult(byte[] challenge, AuthenticationResult.AuthenticationStatus status, Exception cause)
public Exception getCause()
public AuthenticationResult.AuthenticationStatus getStatus()
public byte[] getChallenge()
public Principal getMainPrincipal()
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.