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
-
public class NoAuthorization extends GSSAuthorization
Implements the simplest authorization mechanism that does not do any authorization checks.
-
-
Constructor Summary
Constructors Constructor Description NoAuthorization()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidauthorize(org.ietf.jgss.GSSContext context, java.lang.String host)Performs no authorization checks.org.ietf.jgss.GSSNamegetExpectedName(org.ietf.jgss.GSSCredential cred, java.lang.String host)Always returns null.static NoAuthorizationgetInstance()Returns a single instance of this class.-
Methods inherited from class org.globus.gsi.gssapi.auth.Authorization
generateAuthorizationException
-
-
-
-
Method Detail
-
getInstance
public static NoAuthorization getInstance()
Returns a single instance of this class.- Returns:
- the instance of this class.
-
getExpectedName
public org.ietf.jgss.GSSName getExpectedName(org.ietf.jgss.GSSCredential cred, java.lang.String host) throws org.ietf.jgss.GSSExceptionAlways returns null.- Specified by:
getExpectedNamein classGSSAuthorization- Parameters:
cred- credentials usedhost- host address of the peer.- Throws:
org.ietf.jgss.GSSException- if unable to create the name.
-
authorize
public void authorize(org.ietf.jgss.GSSContext context, java.lang.String host) throws AuthorizationExceptionPerforms no authorization checks. The function is always successful. It does not throw any exceptions.- Specified by:
authorizein classAuthorization- Parameters:
context- the securit contexthost- host address of the peer.- Throws:
AuthorizationException- if the peer is not authorized to access/use the resource.
-
-