Class Authorization
java.lang.Object
org.globus.gsi.gssapi.auth.Authorization
- Direct Known Subclasses:
GSSAuthorization, MyProxyServerAuthorization
Interface for authorization mechanisms.
The authorization is performed once the connection was authenticated.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidauthorize(GSSContext context, String host) Performes authorization checks.protected voidgenerateAuthorizationException(GSSName expected, GSSName target)
-
Constructor Details
-
Authorization
public Authorization()
-
-
Method Details
-
authorize
Performes authorization checks. ThrowsAuthorizationExceptionif the authorization fails. Otherwise, the function completes normally.- Parameters:
context- the securit contexthost- host address of the peer.- Throws:
AuthorizationException- if the peer is not authorized to access/use the resource.
-
generateAuthorizationException
protected void generateAuthorizationException(GSSName expected, GSSName target) throws AuthorizationException - Throws:
AuthorizationException
-