Package org.globus.gsi.gssapi.auth
Class NoAuthorization
java.lang.Object
org.globus.gsi.gssapi.auth.Authorization
org.globus.gsi.gssapi.auth.GSSAuthorization
org.globus.gsi.gssapi.auth.NoAuthorization
Implements the simplest authorization mechanism that does
not do any authorization checks.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static NoAuthorization
private static org.apache.commons.logging.Log
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
authorize
(GSSContext context, String host) Performs no authorization checks.getExpectedName
(GSSCredential cred, String host) Always returns null.static NoAuthorization
Returns a single instance of this class.Methods inherited from class org.globus.gsi.gssapi.auth.Authorization
generateAuthorizationException
-
Field Details
-
logger
private static org.apache.commons.logging.Log logger -
authorization
-
-
Constructor Details
-
NoAuthorization
public NoAuthorization()
-
-
Method Details
-
getInstance
Returns a single instance of this class.- Returns:
- the instance of this class.
-
getExpectedName
Always returns null.- Specified by:
getExpectedName
in classGSSAuthorization
- Parameters:
cred
- credentials usedhost
- host address of the peer.- Throws:
GSSException
- if unable to create the name.
-
authorize
Performs no authorization checks. The function is always successful. It does not throw any exceptions.- Specified by:
authorize
in classAuthorization
- Parameters:
context
- the securit contexthost
- host address of the peer.- Throws:
AuthorizationException
- if the peer is not authorized to access/use the resource.
-