public class XOauth2Mechanism extends AbstractMechanism
Mechanism.PRIORITYEMPTY| Constructor and Description |
|---|
XOauth2Mechanism() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAdditionalFailureInformation()
Allows a mechanism to report additional information on the reason for
authentication failure (e.g.
|
byte[] |
getChallengeResponse(byte[] challenge)
Create a response based on a given challenge from the remote peer.
|
byte[] |
getInitialResponse()
Create an initial response based on selected mechanism.
|
String |
getName() |
int |
getPriority() |
boolean |
isApplicable(String username,
String password,
Principal localPrincipal)
Allows the mechanism to determine if it can be used given the authentication
provided.
|
compareTo, getPassword, getUsername, init, isEnabledByDefault, setPassword, setUsername, toString, verifyCompletionpublic int getPriority()
public String getName()
public byte[] getInitialResponse()
Mechanismpublic byte[] getChallengeResponse(byte[] challenge)
Mechanismchallenge - the challenge that this Mechanism should response to.public boolean isApplicable(String username, String password, Principal localPrincipal)
Mechanismusername - The user name given to the client for authentication.password - The password given to the client for authentication.localPrincipal - The local Principal configured for the client for authentication.public String getAdditionalFailureInformation()
MechanismCopyright © 2013–2019 The Apache Software Foundation. All rights reserved.