public abstract class AuthorizationContext extends Object
Modifier and Type | Field and Description |
---|---|
protected CallbackHandler |
callbackHandler |
static int |
DENY |
static int |
PERMIT |
protected String |
securityDomainName |
protected Map<String,Object> |
sharedState |
Constructor and Description |
---|
AuthorizationContext() |
Modifier and Type | Method and Description |
---|---|
abstract int |
authorize(Resource resource)
Authorize the Resource
|
abstract int |
authorize(Resource resource,
Subject subject,
RoleGroup roles)
Authorize the resource
|
String |
getSecurityDomain()
Return the Security Domain Name
|
protected String securityDomainName
protected CallbackHandler callbackHandler
public static final int PERMIT
public static final int DENY
public abstract int authorize(Resource resource) throws AuthorizationException
resource
- AuthorizationException
public abstract int authorize(Resource resource, Subject subject, RoleGroup roles) throws AuthorizationException
resource
- subject
- Subject of the callerroles
- Roles of the callerAuthorizationException
public String getSecurityDomain()
Copyright © 2020 JBoss by Red Hat. All rights reserved.