Java Globus API: Class NoAuthorization

org.globus.gsi.gssapi.auth
Class NoAuthorization

java.lang.Object
  |
  +--org.globus.gsi.gssapi.auth.Authorization
        |
        +--org.globus.gsi.gssapi.auth.NoAuthorization

public class NoAuthorization
extends Authorization

Implements the simplest authorization mechanism that does not do any authorization checks.


Constructor Summary
NoAuthorization()
           
 
Method Summary
 void authorize(GSSContext context, String host)
          Performs no authorization checks.
static NoAuthorization getInstance()
          Returns a single instance of this class.
 
Methods inherited from class org.globus.gsi.gssapi.auth.Authorization
generateAuthorizationException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoAuthorization

public NoAuthorization()
Method Detail

getInstance

public static NoAuthorization getInstance()
Returns a single instance of this class.
Returns:
the instance of this class.

authorize

public void authorize(GSSContext context,
                      String host)
               throws AuthorizationException
Performs no authorization checks. The function is always successful. It does not throw any exceptions.
Overrides:
authorize in class Authorization
Following copied from class: org.globus.gsi.gssapi.auth.Authorization
Parameters:
context - the securit context
host - host address of the peer.
Throws:
AuthorizationException - if the peer is not authorized to access/use the resource.