public class PlainMechanism extends AbstractMechanism
Mechanism.PRIORITYEMPTY| Constructor and Description |
|---|
PlainMechanism() |
| Modifier and Type | Method and Description |
|---|---|
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, verifyCompletionclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAdditionalFailureInformationpublic 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.Copyright © 2013–2019 The Apache Software Foundation. All rights reserved.