Java Globus API: Class SelfAuthorization

org.globus.gsi.gssapi.auth
Class SelfAuthorization

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

public class SelfAuthorization
extends Authorization

Performs the identity authorization check. The identity is obtained from specified Globus credentials.


Constructor Summary
SelfAuthorization()
           
 
Method Summary
 void authorize(GSSContext context, String host)
          Performs self authorization.
static SelfAuthorization 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

SelfAuthorization

public SelfAuthorization()
Method Detail

getInstance

public static SelfAuthorization 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 self authorization.
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.