org.globus.gsi.gssapi
Class GlobusGSSManagerImpl

java.lang.Object
  extended by org.ietf.jgss.GSSManager
      extended by org.gridforum.jgss.ExtendedGSSManager
          extended by org.globus.gsi.gssapi.GlobusGSSManagerImpl

public class GlobusGSSManagerImpl
extends ExtendedGSSManager

An implementation of GlobusGSSManager.


Constructor Summary
GlobusGSSManagerImpl()
           
 
Method Summary
 void addProviderAtEnd(java.security.Provider p, org.ietf.jgss.Oid mech)
          Currently not implemented.
 void addProviderAtFront(java.security.Provider p, org.ietf.jgss.Oid mech)
          Currently not implemented.
static void checkMechanism(org.ietf.jgss.Oid mech)
          Checks if the specified mechanism matches the mechanism supported by this implementation.
 org.ietf.jgss.GSSContext createContext(byte[] interProcessToken)
          Currently not implemented.
 org.ietf.jgss.GSSContext createContext(org.ietf.jgss.GSSCredential cred)
           
 org.ietf.jgss.GSSContext createContext(org.ietf.jgss.GSSName peer, org.ietf.jgss.Oid mech, org.ietf.jgss.GSSCredential cred, int lifetime)
           
 org.ietf.jgss.GSSCredential createCredential(byte[] buff, int option, int lifetime, org.ietf.jgss.Oid mech, int usage)
          Imports a credential.
 org.ietf.jgss.GSSCredential createCredential(org.ietf.jgss.GSSName name, int lifetime, org.ietf.jgss.Oid[] mechs, int usage)
          Acquires GSI GSS credentials.
 org.ietf.jgss.GSSCredential createCredential(org.ietf.jgss.GSSName name, int lifetime, org.ietf.jgss.Oid mech, int usage)
          Acquires GSI GSS credentials.
 org.ietf.jgss.GSSCredential createCredential(int usage)
          Acquires GSI GSS credentials.
 org.ietf.jgss.GSSName createName(byte[] name, org.ietf.jgss.Oid nameType)
          Currently not implemented.
 org.ietf.jgss.GSSName createName(byte[] name, org.ietf.jgss.Oid nameType, org.ietf.jgss.Oid mech)
          Currently not implemented.
 org.ietf.jgss.GSSName createName(java.lang.String nameStr, org.ietf.jgss.Oid nameType)
           
 org.ietf.jgss.GSSName createName(java.lang.String nameStr, org.ietf.jgss.Oid nameType, org.ietf.jgss.Oid mech)
          Currently not implemented.
 org.ietf.jgss.Oid[] getMechs()
           
 org.ietf.jgss.Oid[] getMechsForName(org.ietf.jgss.Oid nameType)
          Currently not implemented.
 org.ietf.jgss.Oid[] getNamesForMech(org.ietf.jgss.Oid mech)
          Currently not implemented.
 
Methods inherited from class org.gridforum.jgss.ExtendedGSSManager
getInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlobusGSSManagerImpl

public GlobusGSSManagerImpl()
Method Detail

createCredential

public org.ietf.jgss.GSSCredential createCredential(int usage)
                                             throws org.ietf.jgss.GSSException
Acquires GSI GSS credentials.

Specified by:
createCredential in class org.ietf.jgss.GSSManager
Throws:
org.ietf.jgss.GSSException
See Also:
createCredential(GSSName, int, Oid, int)

createCredential

public org.ietf.jgss.GSSCredential createCredential(org.ietf.jgss.GSSName name,
                                                    int lifetime,
                                                    org.ietf.jgss.Oid mech,
                                                    int usage)
                                             throws org.ietf.jgss.GSSException
Acquires GSI GSS credentials. First, it tries to find the credentials in the private credential set of the current JAAS Subject. If the Subject is not set or credentials are not found in the Subject, it tries to get a default user credential (usually an user proxy file)

Specified by:
createCredential in class org.ietf.jgss.GSSManager
Parameters:
lifetime - Only lifetime set to GSSCredential.DEFAULT_LIFETIME is allowed.
Throws:
org.ietf.jgss.GSSException
See Also:
X509Credential.getDefaultCredential()

createCredential

public org.ietf.jgss.GSSCredential createCredential(org.ietf.jgss.GSSName name,
                                                    int lifetime,
                                                    org.ietf.jgss.Oid[] mechs,
                                                    int usage)
                                             throws org.ietf.jgss.GSSException
Acquires GSI GSS credentials.

Specified by:
createCredential in class org.ietf.jgss.GSSManager
Throws:
org.ietf.jgss.GSSException
See Also:
createCredential(GSSName, int, Oid, int)

createCredential

public org.ietf.jgss.GSSCredential createCredential(byte[] buff,
                                                    int option,
                                                    int lifetime,
                                                    org.ietf.jgss.Oid mech,
                                                    int usage)
                                             throws org.ietf.jgss.GSSException
Imports a credential.

Specified by:
createCredential in class ExtendedGSSManager
Parameters:
lifetime - Only lifetime set to GSSCredential.DEFAULT_LIFETIME is allowed.
buff - The token emitted from the ExtendedGSSCredential.export method.
option - The import type. The import type must be the same as the option used to export the buffer.
mech - The desired mechanism for the imported credential, may be null to indicate system default.
usage - The intended usage for this credential object. The value of this parameter must be one of: GSSCredential.INITIATE_AND_ACCEPT, GSSCredential.ACCEPT_ONLY, and GSSCredential.INITIATE_ONLY.
Throws:
org.ietf.jgss.GSSException - containing the following major error codes: GSSException.BAD_MECH, GSSException.DEFECTIVE_TOKEN, GSSException.NO_CRED, GSSException.CREDENTIAL_EXPIRED, GSSException.FAILURE

createContext

public org.ietf.jgss.GSSContext createContext(org.ietf.jgss.GSSName peer,
                                              org.ietf.jgss.Oid mech,
                                              org.ietf.jgss.GSSCredential cred,
                                              int lifetime)
                                       throws org.ietf.jgss.GSSException
Specified by:
createContext in class org.ietf.jgss.GSSManager
Throws:
org.ietf.jgss.GSSException

createContext

public org.ietf.jgss.GSSContext createContext(org.ietf.jgss.GSSCredential cred)
                                       throws org.ietf.jgss.GSSException
Specified by:
createContext in class org.ietf.jgss.GSSManager
Throws:
org.ietf.jgss.GSSException

getMechs

public org.ietf.jgss.Oid[] getMechs()
Specified by:
getMechs in class org.ietf.jgss.GSSManager

createName

public org.ietf.jgss.GSSName createName(java.lang.String nameStr,
                                        org.ietf.jgss.Oid nameType)
                                 throws org.ietf.jgss.GSSException
Specified by:
createName in class org.ietf.jgss.GSSManager
Throws:
org.ietf.jgss.GSSException

checkMechanism

public static void checkMechanism(org.ietf.jgss.Oid mech)
                           throws org.ietf.jgss.GSSException
Checks if the specified mechanism matches the mechanism supported by this implementation.

Parameters:
mech - mechanism to check
Throws:
org.ietf.jgss.GSSException - if mechanism not supported.

createContext

public org.ietf.jgss.GSSContext createContext(byte[] interProcessToken)
                                       throws org.ietf.jgss.GSSException
Currently not implemented.

Specified by:
createContext in class org.ietf.jgss.GSSManager
Throws:
org.ietf.jgss.GSSException

getNamesForMech

public org.ietf.jgss.Oid[] getNamesForMech(org.ietf.jgss.Oid mech)
                                    throws org.ietf.jgss.GSSException
Currently not implemented.

Specified by:
getNamesForMech in class org.ietf.jgss.GSSManager
Throws:
org.ietf.jgss.GSSException

getMechsForName

public org.ietf.jgss.Oid[] getMechsForName(org.ietf.jgss.Oid nameType)
Currently not implemented.

Specified by:
getMechsForName in class org.ietf.jgss.GSSManager

createName

public org.ietf.jgss.GSSName createName(java.lang.String nameStr,
                                        org.ietf.jgss.Oid nameType,
                                        org.ietf.jgss.Oid mech)
                                 throws org.ietf.jgss.GSSException
Currently not implemented.

Specified by:
createName in class org.ietf.jgss.GSSManager
Throws:
org.ietf.jgss.GSSException

createName

public org.ietf.jgss.GSSName createName(byte[] name,
                                        org.ietf.jgss.Oid nameType)
                                 throws org.ietf.jgss.GSSException
Currently not implemented.

Specified by:
createName in class org.ietf.jgss.GSSManager
Throws:
org.ietf.jgss.GSSException

createName

public org.ietf.jgss.GSSName createName(byte[] name,
                                        org.ietf.jgss.Oid nameType,
                                        org.ietf.jgss.Oid mech)
                                 throws org.ietf.jgss.GSSException
Currently not implemented.

Specified by:
createName in class org.ietf.jgss.GSSManager
Throws:
org.ietf.jgss.GSSException

addProviderAtFront

public void addProviderAtFront(java.security.Provider p,
                               org.ietf.jgss.Oid mech)
                        throws org.ietf.jgss.GSSException
Currently not implemented.

Specified by:
addProviderAtFront in class org.ietf.jgss.GSSManager
Throws:
org.ietf.jgss.GSSException

addProviderAtEnd

public void addProviderAtEnd(java.security.Provider p,
                             org.ietf.jgss.Oid mech)
                      throws org.ietf.jgss.GSSException
Currently not implemented.

Specified by:
addProviderAtEnd in class org.ietf.jgss.GSSManager
Throws:
org.ietf.jgss.GSSException


Copyright © 2013. All Rights Reserved.