public abstract class Authorization extends Object
Constructor and Description |
---|
Authorization() |
Modifier and Type | Method and Description |
---|---|
abstract void |
authorize(GSSContext context,
String host)
Performes authorization checks.
|
protected void |
generateAuthorizationException(GSSName expected,
GSSName target) |
public abstract void authorize(GSSContext context, String host) throws AuthorizationException
AuthorizationException
if the authorization fails.
Otherwise, the function completes normally.context
- the securit contexthost
- host address of the peer.AuthorizationException
- if the peer is
not authorized to access/use the resource.protected void generateAuthorizationException(GSSName expected, GSSName target) throws AuthorizationException
AuthorizationException
Copyright © 2016. All rights reserved.