GSSAuthorization
, MyProxyServerAuthorization
public abstract class Authorization extends Object
Constructor | Description |
---|---|
Authorization() |
Modifier and Type | Method | 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 © 2018. All rights reserved.