Package org.globus.gsi.gssapi.auth
Class Authorization
- java.lang.Object
-
- org.globus.gsi.gssapi.auth.Authorization
-
- Direct Known Subclasses:
GSSAuthorization,MyProxyServerAuthorization
public abstract class Authorization extends java.lang.ObjectInterface for authorization mechanisms. The authorization is performed once the connection was authenticated.
-
-
Constructor Summary
Constructors Constructor Description Authorization()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidauthorize(org.ietf.jgss.GSSContext context, java.lang.String host)Performes authorization checks.protected voidgenerateAuthorizationException(org.ietf.jgss.GSSName expected, org.ietf.jgss.GSSName target)
-
-
-
Method Detail
-
authorize
public abstract void authorize(org.ietf.jgss.GSSContext context, java.lang.String host) throws AuthorizationExceptionPerformes 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(org.ietf.jgss.GSSName expected, org.ietf.jgss.GSSName target) throws AuthorizationException- Throws:
AuthorizationException
-
-