Class SelfAuthorization
java.lang.Object
org.globus.gsi.gssapi.auth.Authorization
org.globus.gsi.gssapi.auth.GSSAuthorization
org.globus.gsi.gssapi.auth.SelfAuthorization
Performs the identity authorization check. The identity
is obtained from specified Globus credentials.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static SelfAuthorizationprivate static org.apache.commons.logging.Log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidauthorize(GSSContext context, String host) Performs self authorization.getExpectedName(GSSCredential cred, String host) Returns expectedGSSNameused for authorization purposes.static SelfAuthorizationReturns a single instance of this class.Methods inherited from class Authorization
generateAuthorizationException
-
Field Details
-
logger
private static org.apache.commons.logging.Log logger -
authorization
-
-
Constructor Details
-
SelfAuthorization
public SelfAuthorization()
-
-
Method Details
-
getInstance
Returns a single instance of this class.- Returns:
- the instance of this class.
-
getExpectedName
Description copied from class:GSSAuthorizationReturns expectedGSSNameused for authorization purposes. Can returns null for self authorization.- Specified by:
getExpectedNamein classGSSAuthorization- Parameters:
cred- credentials usedhost- host address of the peer.- Throws:
GSSException- if unable to create the name.
-
authorize
Performs self authorization.- 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.
-