public class PrincipalAuthorizeCallback extends Object implements ExtendedCallback
An authorization callback similar to javase AuthorizeCallback
but using a generic principal.
| Constructor and Description |
|---|
PrincipalAuthorizeCallback(Principal principal)
Creates a new instance to authorize the associated
principal. |
PrincipalAuthorizeCallback(String name)
Creates a new instance to authorize the associated
name. |
| Modifier and Type | Method and Description |
|---|---|
Principal |
getPrincipal()
Returns the
Principal. |
boolean |
isAuthorized()
Indicates if the principal was successfully authorized.
|
void |
setAuthorized(boolean authorized)
Sets whether the authorization is allowed for the principal.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisOptional, needsInformationpublic PrincipalAuthorizeCallback(String name)
name.
It will be transformed in a NamePrincipal.name - the name to authorizepublic PrincipalAuthorizeCallback(Principal principal)
principal.principal - the principal to authorizepublic boolean isAuthorized()
public void setAuthorized(boolean authorized)
authorized - authorization resultCopyright © 2022 JBoss by Red Hat. All rights reserved.