Java Globus API: Class NoAuthorization

org.globus.security.auth
Class NoAuthorization

java.lang.Object
  |
  +--org.globus.security.auth.NoAuthorization
All Implemented Interfaces:
Authorization

public class NoAuthorization
extends java.lang.Object
implements Authorization

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


Constructor Summary
NoAuthorization()
           
 
Method Summary
 void authorize(java.security.cert.X509Certificate[] chain, java.net.Socket socket)
          Performs no authorization checks.
static NoAuthorization getInstance()
          Returns a single instance of this class.
 
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(java.security.cert.X509Certificate[] chain,
                      java.net.Socket socket)
               throws AuthorizationException
Performs no authorization checks. The function is always successful. It does not throw any exceptions.
Specified by:
authorize in interface Authorization
Following copied from interface: org.globus.security.auth.Authorization
Parameters:
chain - the peer certificate chain.
socket - the socket connected to the peer.
Throws:
AuthorizationException - if the peer is not authorized to access/use the resource.