
public final class AnonymousAuthorizationCallback extends Object implements ExtendedCallback, Serializable
| Constructor and Description |
|---|
AnonymousAuthorizationCallback(String authorizationInfo)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAuthorizationInfo()
Get the authorization name string from the client.
|
boolean |
isAuthorized()
Determine whether anonymous access was allowed by the callback handler.
|
boolean |
isOptional()
Determine if this callback is optional.
|
boolean |
needsInformation()
Determine if this callback is requesting information.
|
void |
setAuthorized(boolean authorized)
Set whether anonymous access is allowed.
|
public AnonymousAuthorizationCallback(String authorizationInfo)
authorizationInfo - the authorization information string from the clientpublic String getAuthorizationInfo()
public boolean isAuthorized()
true if anonymous authentication was allowed, false otherwisepublic void setAuthorized(boolean authorized)
authorized - true if anonymous access is allowed, false otherwisepublic boolean isOptional()
ExtendedCallbackisOptional in interface ExtendedCallbacktrue if the callback is optional, false if it is mandatorypublic boolean needsInformation()
ExtendedCallbackneedsInformation in interface ExtendedCallbacktrue if the callback is requesting information, false if it is only providing informationCopyright © 2020 JBoss by Red Hat. All rights reserved.