Package org.globus.myproxy
Class MyProxyServerAuthorization
- java.lang.Object
-
- org.globus.gsi.gssapi.auth.Authorization
-
- org.globus.myproxy.MyProxyServerAuthorization
-
public class MyProxyServerAuthorization extends Authorization
Implements the MyProxy server authorization mechanism.
-
-
Field Summary
Fields Modifier and Type Field Description private HostAuthorization
authzHostService
private HostAuthorization
authzMyProxyService
-
Constructor Summary
Constructors Constructor Description MyProxyServerAuthorization()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
authorize(org.ietf.jgss.GSSContext context, java.lang.String host)
Performs MyProxy server authorization checks.-
Methods inherited from class org.globus.gsi.gssapi.auth.Authorization
generateAuthorizationException
-
-
-
-
Field Detail
-
authzHostService
private HostAuthorization authzHostService
-
authzMyProxyService
private HostAuthorization authzMyProxyService
-
-
Method Detail
-
authorize
public void authorize(org.ietf.jgss.GSSContext context, java.lang.String host) throws AuthorizationException
Performs MyProxy server authorization checks. The hostname of the server is compared with the hostname specified in the server's (topmost) certificate in the certificate chain. The hostnames must match exactly (in case-insensitive way). The service in the certificate may be "host" or "myproxy".AuthorizationException
if the authorization fails. Otherwise, the function completes normally.- Specified by:
authorize
in classAuthorization
- Parameters:
context
- the security context.host
- host address of the peer.- Throws:
AuthorizationException
- if the peer is not authorized to access/use the resource.
-
-