org.globus.wsrf.impl.security.authorization
Class HostOrSelfAuthorization

java.lang.Object
  extended by org.globus.wsrf.impl.security.authorization.HostOrSelfAuthorization
All Implemented Interfaces:
java.io.Serializable, Authorization

public class HostOrSelfAuthorization
extends java.lang.Object
implements Authorization

See Also:
Serialized Form

Field Summary
(package private)  HostAuthorization hostAuthz
           
private static org.globus.util.I18n i18n
           
private static org.apache.commons.logging.Log logger
           
static java.lang.String SERVICE_PROPERTY
           
static java.lang.String URL_PROPERTY
           
 
Fields inherited from interface org.globus.wsrf.security.authorization.client.Authorization
AUTHZ_GRIDMAP, AUTHZ_HOST, AUTHZ_HOST_SELF, AUTHZ_IDENTITY, AUTHZ_NONE, AUTHZ_SELF, IMPL_RESOURCE, RESOURCE
 
Constructor Summary
HostOrSelfAuthorization()
           
HostOrSelfAuthorization(java.lang.String service_)
           
 
Method Summary
 void authorize(javax.security.auth.Subject peerSubject, javax.xml.rpc.handler.MessageContext context)
          Does host based authorization of the service.
 org.ietf.jgss.GSSName getName(javax.xml.rpc.handler.MessageContext ctx)
          Returns the identity of the authorized entity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

i18n

private static org.globus.util.I18n i18n

logger

private static org.apache.commons.logging.Log logger

URL_PROPERTY

public static final java.lang.String URL_PROPERTY
See Also:
Constant Field Values

SERVICE_PROPERTY

public static final java.lang.String SERVICE_PROPERTY
See Also:
Constant Field Values

hostAuthz

HostAuthorization hostAuthz
Constructor Detail

HostOrSelfAuthorization

public HostOrSelfAuthorization()

HostOrSelfAuthorization

public HostOrSelfAuthorization(java.lang.String service_)
Method Detail

authorize

public void authorize(javax.security.auth.Subject peerSubject,
                      javax.xml.rpc.handler.MessageContext context)
               throws AuthorizationException
Does host based authorization of the service. The host name is picked up from the MessageContext

Specified by:
authorize in interface Authorization
Throws:
AuthorizationException

getName

public org.ietf.jgss.GSSName getName(javax.xml.rpc.handler.MessageContext ctx)
                              throws AuthorizationException
Description copied from interface: Authorization
Returns the identity of the authorized entity

Specified by:
getName in interface Authorization
Throws:
AuthorizationException