|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.globus.wsrf.security.SecurityManager
public abstract class SecurityManager
| Constructor Summary | |
|---|---|
SecurityManager()
|
|
| Method Summary | |
|---|---|
abstract java.lang.String |
getCaller()
Returns the identity of the current caller. |
abstract java.security.Principal |
getCallerPrincipal()
Returns the identity of the current caller. |
abstract java.lang.String[] |
getLocalUsernames()
Returns the local user name of the caller as mapped in the configured grid map file. |
static SecurityManager |
getManager()
Returns an instance of the security manager. |
static SecurityManager |
getManager(javax.xml.rpc.handler.soap.SOAPMessageContext ctx)
Returns an instance of the security manager. |
abstract javax.security.auth.Subject |
getPeerSubject()
Returns the subject of the caller/client Might return null if client did not authenticate. |
abstract javax.security.auth.Subject |
getServiceSubject()
Returns effective service subject. |
abstract javax.security.auth.Subject |
getServiceSubject(java.lang.String servicePath)
Returns effective service subject. |
abstract javax.security.auth.Subject |
getSubject()
|
abstract javax.security.auth.Subject |
getSubject(Resource resource)
|
abstract javax.security.auth.Subject |
getSubject(java.lang.String servicePath,
Resource resource)
Returns effective resource subject. |
abstract javax.security.auth.Subject |
getSystemSubject()
Returns the system subject (containing the container credentials). |
abstract void |
setResourceOwnerFromContext(ResourceSecurityDescriptor desc)
Sets the resource descriptor object with the current invocation subject. |
abstract javax.security.auth.Subject |
setServiceOwnerFromContext()
Sets the target service with the current invocation subject. |
abstract javax.security.auth.Subject |
setServiceOwnerFromContext(java.lang.String servicePath)
Sets the service with the current invocation subject. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SecurityManager()
| Method Detail |
|---|
public static SecurityManager getManager()
public static SecurityManager getManager(javax.xml.rpc.handler.soap.SOAPMessageContext ctx)
public abstract javax.security.auth.Subject getSystemSubject()
throws SecurityException
SecurityException - if failed to obtain container credentials.
public abstract javax.security.auth.Subject getServiceSubject()
throws SecurityException
SecurityException - if failed to obtain credentials.
public abstract javax.security.auth.Subject getServiceSubject(java.lang.String servicePath)
throws SecurityException
servicePath - service path
SecurityException - if failed to obtain credentials.
public abstract javax.security.auth.Subject getSubject(Resource resource)
throws SecurityException
SecurityException
public abstract javax.security.auth.Subject getSubject()
throws SecurityException
SecurityException
public abstract javax.security.auth.Subject getSubject(java.lang.String servicePath,
Resource resource)
throws SecurityException
servicePath - service pathresource - object representing the resource
SecurityException - if failed to obtain credentials.public abstract java.lang.String getCaller()
public abstract java.security.Principal getCallerPrincipal()
public abstract javax.security.auth.Subject getPeerSubject()
public abstract javax.security.auth.Subject setServiceOwnerFromContext(java.lang.String servicePath)
throws SecurityException
GlobusPrincipals in invocation subject
are added as authorized users to access the service.
servicePath - the service to set the subject on.
SecurityException - if the operation fails.
public abstract javax.security.auth.Subject setServiceOwnerFromContext()
throws SecurityException
GlobusPrincipals in invocation subject
are added as authorized users to access the service.
SecurityException - if the operation fails.
public abstract void setResourceOwnerFromContext(ResourceSecurityDescriptor desc)
throws SecurityException
GlobusPrincipals in invocation subject
are added as authorized users to access the resource.
desc - the resource security descriptor to set the subject on.
SecurityException - if the operation fails.
public abstract java.lang.String[] getLocalUsernames()
throws SecurityException
SecurityException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||