|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.globus.wsrf.security.SecurityManager
org.globus.wsrf.impl.security.SecurityManagerImpl
| Field Summary | |
private org.apache.axis.MessageContext |
context
|
private static org.globus.util.I18n |
i18n
|
private static org.apache.commons.logging.Log |
logger
|
| Constructor Summary | |
SecurityManagerImpl()
|
|
SecurityManagerImpl(javax.xml.rpc.handler.soap.SOAPMessageContext ctx)
|
|
| Method Summary | |
private void |
addAuthorizedUser(javax.security.auth.Subject subject,
org.globus.security.gridmap.GridMap gridMap)
|
java.lang.String |
getCaller()
Returns the identity of the current caller. |
java.security.Principal |
getCallerPrincipal()
Returns the identity of the current caller. |
java.security.Principal |
getCallerPrincipal(javax.security.auth.Subject caller)
Extracts the principal from caller subject |
java.lang.String[] |
getLocalUsernames()
Returns the local user name of the caller as mapped in the configured grid map file. |
private javax.security.auth.Subject |
getResourceSubject(Resource resource)
|
javax.security.auth.Subject |
getServiceSubject()
Returns effective service subject. |
javax.security.auth.Subject |
getServiceSubject(java.lang.String servicePath)
Returns effective service subject. |
private javax.security.auth.Subject |
getSubject()
|
javax.security.auth.Subject |
getSubject(Resource resource)
Returns effective resource subject. |
javax.security.auth.Subject |
getSubject(java.lang.String servicePath,
Resource resource)
Returns effective resource subject. |
javax.security.auth.Subject |
getSystemSubject()
Returns the system subject (containing the container credentials). |
void |
setResourceOwnerFromContext(ResourceSecurityDescriptor desc)
Sets the resource descriptor object with the current invocation subject. |
javax.security.auth.Subject |
setServiceOwnerFromContext()
Sets the service object with the current invocation subject. |
javax.security.auth.Subject |
setServiceOwnerFromContext(java.lang.String servicePath)
Sets the service object with the current invocation subject. |
| Methods inherited from class org.globus.wsrf.security.SecurityManager |
getManager, getManager |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private org.apache.axis.MessageContext context
private static org.apache.commons.logging.Log logger
private static org.globus.util.I18n i18n
| Constructor Detail |
public SecurityManagerImpl()
public SecurityManagerImpl(javax.xml.rpc.handler.soap.SOAPMessageContext ctx)
| Method Detail |
public javax.security.auth.Subject getSystemSubject()
throws SecurityException
getSystemSubject in class SecurityManagerSecurityException - if failed to obtain container credentials.
public javax.security.auth.Subject getServiceSubject()
throws SecurityException
getServiceSubject in class SecurityManagerSecurityException - if failed to obtain credentials.
public javax.security.auth.Subject getServiceSubject(java.lang.String servicePath)
throws SecurityException
getServiceSubject in class SecurityManagerservicePath - service path
SecurityException - if failed to obtain credentials.
public javax.security.auth.Subject getSubject(Resource resource)
throws SecurityException
getSubject in class SecurityManagerresource - object representing the resource
SecurityException - if failed to obtain credentials.
public javax.security.auth.Subject getSubject(java.lang.String servicePath,
Resource resource)
throws SecurityException
getSubject in class SecurityManagerservicePath - service pathresource - object representing the resource
SecurityException - if failed to obtain credentials.
private javax.security.auth.Subject getResourceSubject(Resource resource)
throws SecurityException
SecurityExceptionpublic java.lang.String getCaller()
getCaller in class SecurityManagerpublic java.security.Principal getCallerPrincipal()
getCallerPrincipal in class SecurityManagerpublic java.security.Principal getCallerPrincipal(javax.security.auth.Subject caller)
getCallerPrincipal in class SecurityManagercaller - Subject
public javax.security.auth.Subject setServiceOwnerFromContext()
throws SecurityException
GlobusPrincipals in invocation subject
are added as authorized users to access the service. The
service associated with the message context is used.
setServiceOwnerFromContext in class SecurityManagerSecurityException - if the operation fails.
public javax.security.auth.Subject setServiceOwnerFromContext(java.lang.String servicePath)
throws SecurityException
GlobusPrincipals in invocation subject
are added as authorized users to access the service.
setServiceOwnerFromContext in class SecurityManagerservicePath - the service to set the subject on.
SecurityException - if the operation fails.
public void setResourceOwnerFromContext(ResourceSecurityDescriptor desc)
throws SecurityException
GlobusPrincipals in invocation subject
are added as authorized users to access the resource.
setResourceOwnerFromContext in class SecurityManagerdesc - the resource security descriptor to set the subject on.
SecurityException - if the operation fails.
private void addAuthorizedUser(javax.security.auth.Subject subject,
org.globus.security.gridmap.GridMap gridMap)
private javax.security.auth.Subject getSubject()
throws SecurityException
SecurityException
public java.lang.String[] getLocalUsernames()
throws SecurityException
getLocalUsernames in class SecurityManagerSecurityException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||