edu.nyu.cs.pdsg.gsspki
Class GSSPKIManager

java.lang.Object
  extended byorg.ietf.jgss.GSSManager
      extended byedu.nyu.cs.pdsg.gsspki.GSSPKIManager

public class GSSPKIManager
extends org.ietf.jgss.GSSManager


Field Summary
private static GSSPKIManager instance
           
private static java.util.HashMap mechanisms
           
private static java.security.Provider pkiprovider
           
private static java.security.Provider provider
           
 
Constructor Summary
GSSPKIManager()
           
 
Method Summary
private static void addMech(org.ietf.jgss.Oid identifier, java.lang.String algorithm)
           
 void addProviderAtEnd(java.security.Provider provider, org.ietf.jgss.Oid mech)
           
 void addProviderAtFront(java.security.Provider provider, org.ietf.jgss.Oid mech)
           
 org.ietf.jgss.GSSContext createContext(byte[] interProcessToken)
          Create a context based on an interprocess token.
 org.ietf.jgss.GSSContext createContext(org.ietf.jgss.GSSCredential myCred)
           
 org.ietf.jgss.GSSContext createContext(org.ietf.jgss.GSSName peer, org.ietf.jgss.Oid mech, org.ietf.jgss.GSSCredential myCred, int lifetime)
           
 org.ietf.jgss.GSSCredential createCredential(org.ietf.jgss.GSSName name, int lifetime, org.ietf.jgss.Oid[] mechs, int usage)
           
 org.ietf.jgss.GSSCredential createCredential(org.ietf.jgss.GSSName name, int lifetime, org.ietf.jgss.Oid mech, int usage)
           
 org.ietf.jgss.GSSCredential createCredential(int usage)
           
 org.ietf.jgss.GSSName createName(byte[] name, org.ietf.jgss.Oid nameType)
           
 org.ietf.jgss.GSSName createName(byte[] name, org.ietf.jgss.Oid nameType, org.ietf.jgss.Oid mech)
           
 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)
           
static java.security.Provider getGSSProvider()
          initialize and return the default provider for this class
static org.ietf.jgss.GSSManager getInstance()
           
private static java.lang.String getMech(org.ietf.jgss.Oid identifier)
           
 org.ietf.jgss.Oid[] getMechs()
           
 org.ietf.jgss.Oid[] getMechsForName(org.ietf.jgss.Oid nameType)
           
 org.ietf.jgss.Oid[] getNamesForMech(org.ietf.jgss.Oid mech)
           
static void initMechanism(org.ietf.jgss.Oid identifier, java.lang.String algorithm)
          initialize a GSSPKIManager for use with the requested algorithm
static void setProvider(java.security.Provider _provider)
          Set the default PKI provider for GSSPKI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pkiprovider

private static final java.security.Provider pkiprovider

instance

private static final GSSPKIManager instance

mechanisms

private static final java.util.HashMap mechanisms

provider

private static java.security.Provider provider
Constructor Detail

GSSPKIManager

public GSSPKIManager()
Method Detail

setProvider

public static void setProvider(java.security.Provider _provider)
Set the default PKI provider for GSSPKI. Do not call this after you start a context or create names/contexts

Parameters:
_provider - the new PKI implementation provider

getGSSProvider

public static java.security.Provider getGSSProvider()
initialize and return the default provider for this class


initMechanism

public static void initMechanism(org.ietf.jgss.Oid identifier,
                                 java.lang.String algorithm)
initialize a GSSPKIManager for use with the requested algorithm

Parameters:
identifier - the identifier to refer to the new GSSPKIManager by
algorithm - the algorithm to initialize the new GSSPKIManager with

addMech

private static void addMech(org.ietf.jgss.Oid identifier,
                            java.lang.String algorithm)

getMech

private static java.lang.String getMech(org.ietf.jgss.Oid identifier)

getInstance

public static org.ietf.jgss.GSSManager getInstance()

createContext

public org.ietf.jgss.GSSContext createContext(byte[] interProcessToken)
                                       throws org.ietf.jgss.GSSException
Create a context based on an interprocess token. Not available yet.

Throws:
org.ietf.jgss.GSSException

createContext

public org.ietf.jgss.GSSContext createContext(org.ietf.jgss.GSSCredential myCred)
                                       throws org.ietf.jgss.GSSException
Throws:
org.ietf.jgss.GSSException

createContext

public org.ietf.jgss.GSSContext createContext(org.ietf.jgss.GSSName peer,
                                              org.ietf.jgss.Oid mech,
                                              org.ietf.jgss.GSSCredential myCred,
                                              int lifetime)
                                       throws org.ietf.jgss.GSSException
Throws:
org.ietf.jgss.GSSException

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
Throws:
org.ietf.jgss.GSSException

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
Throws:
org.ietf.jgss.GSSException

createCredential

public org.ietf.jgss.GSSCredential createCredential(int usage)
                                             throws org.ietf.jgss.GSSException
Throws:
org.ietf.jgss.GSSException

createName

public org.ietf.jgss.GSSName createName(byte[] name,
                                        org.ietf.jgss.Oid nameType)
                                 throws org.ietf.jgss.GSSException
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
Throws:
org.ietf.jgss.GSSException

addProviderAtEnd

public void addProviderAtEnd(java.security.Provider provider,
                             org.ietf.jgss.Oid mech)
                      throws org.ietf.jgss.GSSException
Throws:
org.ietf.jgss.GSSException

addProviderAtFront

public void addProviderAtFront(java.security.Provider provider,
                               org.ietf.jgss.Oid mech)
                        throws org.ietf.jgss.GSSException
Throws:
org.ietf.jgss.GSSException

createName

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

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
Throws:
org.ietf.jgss.GSSException

getMechs

public org.ietf.jgss.Oid[] getMechs()

getMechsForName

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

getNamesForMech

public org.ietf.jgss.Oid[] getNamesForMech(org.ietf.jgss.Oid mech)


Copyright (c) 2002-2003 New York University RLAB