|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.globus.wsrf.impl.security.authorization.BasicSubjectAuthorization
org.globus.wsrf.impl.security.authorization.SelfAuthorization
Enforces that the client and server have the same identity.
| Field Summary | |
(package private) static org.globus.util.I18n |
i18n
|
private static org.apache.commons.logging.Log |
logger
|
(package private) java.lang.String |
servicePath
|
| Fields inherited from interface org.globus.wsrf.impl.security.authorization.Authorization |
AUTHORIZATION, AUTHZ_CLASS, AUTHZ_GRIDMAP, AUTHZ_HOST, AUTHZ_IDENTITY, AUTHZ_NONE, AUTHZ_SAML, AUTHZ_SELF, AUTHZ_USERNAME, GRIDMAP_PREFIX, HOST_PREFIX, IDENTITY_PREFIX, NONE_PREFIX, RESOURCE, SAML_PREFIX, SELF_PREFIX, USERNAME_PREFIX |
| Constructor Summary | |
SelfAuthorization()
|
|
| Method Summary | |
void |
authorize(javax.security.auth.Subject peerSubject,
javax.xml.rpc.handler.MessageContext context)
Method invoked to authorize the call |
void |
close()
this method is called by the PDP framework to indicate that the interceptor now should remove all state that was allocated in the initialize call |
static SelfAuthorization |
getInstance()
|
javax.security.auth.Subject |
getLocalSubject()
|
javax.security.auth.Subject |
getLocalSubject(javax.xml.rpc.handler.MessageContext context)
|
org.ietf.jgss.GSSName |
getName(javax.xml.rpc.handler.MessageContext ctx)
Returns the identity of the authorized entity |
org.w3c.dom.Node |
getPolicy(org.w3c.dom.Node policy)
gets the current policy of the PDP |
java.lang.String[] |
getPolicyNames()
gets the names (typically uris) of all the policies that the PDP supports |
void |
initialize(PDPConfig config,
java.lang.String name,
java.lang.String _servicePath)
Initializes the interceptor with configuration information that are valid up until the point when close is called. |
boolean |
isPermitted(javax.security.auth.Subject peerSubject,
javax.xml.rpc.handler.MessageContext context,
javax.xml.namespace.QName op)
this operation is called by the PDP Framework whenever the application needs to call secured operations. |
org.w3c.dom.Node |
setPolicy(org.w3c.dom.Node policy)
sets the current policy of the PDP |
| Methods inherited from class org.globus.wsrf.impl.security.authorization.BasicSubjectAuthorization |
authorize |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static org.apache.commons.logging.Log logger
java.lang.String servicePath
static org.globus.util.I18n i18n
| Constructor Detail |
public SelfAuthorization()
| Method Detail |
public static SelfAuthorization getInstance()
public void initialize(PDPConfig config,
java.lang.String name,
java.lang.String _servicePath)
throws InitializeException
Interceptor
initialize in interface Interceptorconfig - holding interceptor specific configuration
values, that may be obtained using the name paramtername - the name that should be used to access all the interceptor
local configuration_servicePath - the id in common for all interceptors in a chain (it is valid
up until close is called)
if close is not called the interceptor may assume that the id
still exists after a process restart
InitializeExceptionpublic java.lang.String[] getPolicyNames()
PDP
getPolicyNames in interface PDP
public org.w3c.dom.Node getPolicy(org.w3c.dom.Node policy)
throws InvalidPolicyException
PDP
getPolicy in interface PDPpolicy - may be used to query for a subset of a policy
InvalidPolicyException
public org.w3c.dom.Node setPolicy(org.w3c.dom.Node policy)
throws InvalidPolicyException
PDP
setPolicy in interface PDPpolicy - new policy
InvalidPolicyException
public void close()
throws CloseException
Interceptor
close in interface InterceptorCloseException
public boolean isPermitted(javax.security.auth.Subject peerSubject,
javax.xml.rpc.handler.MessageContext context,
javax.xml.namespace.QName op)
throws AuthorizationException
PDP
isPermitted in interface PDPpeerSubject - authenticated client subject with credentials
and attributescontext - holds properties of this XML message exchangeop - operation that the subject wants to invoke
AuthorizationException
public void authorize(javax.security.auth.Subject peerSubject,
javax.xml.rpc.handler.MessageContext context)
throws AuthorizationException
Authorization
authorize in interface AuthorizationAuthorizationException
public javax.security.auth.Subject getLocalSubject()
throws org.ietf.jgss.GSSException
org.ietf.jgss.GSSException
public javax.security.auth.Subject getLocalSubject(javax.xml.rpc.handler.MessageContext context)
throws org.ietf.jgss.GSSException
org.ietf.jgss.GSSException
public org.ietf.jgss.GSSName getName(javax.xml.rpc.handler.MessageContext ctx)
throws AuthorizationException
Authorization
getName in interface AuthorizationAuthorizationException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||