org.globus.ogsa.impl.security.descriptor
Class ContainerSecurityConfig

java.lang.Object
  extended byorg.globus.ogsa.impl.security.descriptor.ContainerSecurityConfig

public class ContainerSecurityConfig
extends java.lang.Object


Field Summary
static java.lang.String CONTAINER_CERT
           
static java.lang.String CONTAINER_KEY
           
static java.lang.String CONTAINER_PROXY
           
static java.lang.String GRIDMAP
           
 
Constructor Summary
protected ContainerSecurityConfig()
           
 
Method Summary
static ContainerSecurityConfig getConfig()
           
 java.lang.String getGridMapFile()
          Returns the location of the container gridmap file.
 javax.security.auth.Subject getSubject()
          Returns the system credential.
protected  void initCredentials()
           
protected  boolean isUpToDate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GRIDMAP

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

CONTAINER_KEY

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

CONTAINER_CERT

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

CONTAINER_PROXY

public static final java.lang.String CONTAINER_PROXY
See Also:
Constant Field Values
Constructor Detail

ContainerSecurityConfig

protected ContainerSecurityConfig()
Method Detail

getConfig

public static ContainerSecurityConfig getConfig()

getSubject

public javax.security.auth.Subject getSubject()
                                       throws ConfigException
Returns the system credential. Always checks if the system credential is about the expire (lifetime left < 60 seconds) and if so tries to reload the credential.

Throws:
ConfigException

getGridMapFile

public java.lang.String getGridMapFile()
                                throws ConfigException
Returns the location of the container gridmap file. It looks up the "gridmap" property in the global configuration of the configuration file.

Throws:
ConfigException

isUpToDate

protected boolean isUpToDate()
                      throws ConfigException,
                             org.ietf.jgss.GSSException
Throws:
ConfigException
org.ietf.jgss.GSSException

initCredentials

protected void initCredentials()
                        throws ConfigException,
                               org.globus.gsi.GlobusCredentialException,
                               org.ietf.jgss.GSSException
Throws:
ConfigException
org.globus.gsi.GlobusCredentialException
org.ietf.jgss.GSSException


Copyright ? 1999 University of Chicago and The University of Southern California. All Rights Reserved.