| Modifier and Type | Field and Description |
|---|---|
| private final ProviderList | |
| private static final Boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addProviderAtEnd(Provider p, Oid mech)
Implements abstract org. This method is used to indicate to the GSSManager that the application would like a particular provider to be used if no other provider can be found that supports the given mechanism. |
| public void | addProviderAtFront(Provider p, Oid mech)
Implements abstract org. This method is used to indicate to the GSSManager that the application would like a particular provider to be used ahead of all others when support is desired for the given mechanism. |
| public GSSContext | createContext(GSSName peer, Oid mech, GSSCredential myCred, int lifetime)
Implements abstract org. Factory method for creating a context on the initiator's side. |
| public GSSContext | createContext(GSSCredential myCred)
Implements abstract org. Factory method for creating a context on the acceptor' side. |
| public GSSContext | createContext(byte[] interProcessToken)
Implements abstract org. Factory method for creating a previously exported context. |
| public GSSCredential | createCredential(int usage)
Implements abstract org. Factory method for acquiring default credentials. |
| public GSSCredential | createCredential(GSSName aName, int lifetime, Oid mech, int usage)
Implements abstract org. Factory method for acquiring a single mechanism credential. |
| public GSSCredential | createCredential(GSSName aName, int lifetime, Oid[] mechs, int usage)
Implements abstract org. Factory method for acquiring credentials over a set of mechanisms. |
| public GSSName | createName(String nameStr, Oid nameType)
Implements abstract org. Factory method to convert a string name from the specified namespace to a GSSName object. |
| public GSSName | createName(byte[] name, Oid nameType)
Implements abstract org. Factory method to convert a byte array containing a name from the specified namespace to a GSSName object. |
| public GSSName | createName(String nameStr, Oid nameType, Oid mech)
Implements abstract org. Factory method to convert a string name from the specified namespace to a GSSName object and canonicalize it at the same time for a mechanism. |
| public GSSName | createName(byte[] name, Oid nameType, Oid mech)
Implements abstract org. Factory method to convert a byte array containing a name from the specified namespace to a GSSName object and canonicalize it at the same time for a mechanism. |
| public GSSCredentialSpi | |
| pack-priv GSSContextSpi | |
| pack-priv GSSContextSpi | |
| pack-priv GSSContextSpi | |
| public Oid[] | getMechs()
Implements abstract org. Returns a list of mechanisms that are available to GSS-API callers through this GSSManager. |
| public Oid[] | getMechsForName(Oid nameType)
Implements abstract org. Returns a list of mechanisms that support the indicated name type. |
| public GSSNameSpi | |
| public GSSNameSpi | |
| public Oid[] | getNamesForMech(Oid mech)
Implements abstract org. Returns then name types supported by the indicated mechanism. |
| pack-priv static GSSCredential | |
| pack-priv static GSSContext |
| list | back to summary |
|---|---|
| private final ProviderList list | |
| USE_NATIVE | back to summary |
|---|---|
| private static final Boolean USE_NATIVE | |
| GSSManagerImpl | back to summary |
|---|---|
| public GSSManagerImpl(GSSCaller caller, boolean useNative) | |
| GSSManagerImpl | back to summary |
|---|---|
| public GSSManagerImpl(GSSCaller caller) | |
| GSSManagerImpl | back to summary |
|---|---|
| public GSSManagerImpl() | |
| addProviderAtEnd | back to summary |
|---|---|
| public void addProviderAtEnd(Provider p, Oid mech) throws GSSException Implements abstract org. Doc from org. This method is used to indicate to the GSSManager that the application would like a particular provider to be used if no other provider can be found that supports the given mechanism. When a value of null is used instead of an Oid for the mechanism, the GSSManager must use the indicated provider for any mechanism. Calling this method repeatedly preserves the older settings but raises them above newer ones in preference thus forming an ordered list of providers and Oid pairs that grows at the bottom. Thus, the older provider settings will be utilized first before this one is. If there are any previously existing preferences that conflict with the preference being set here, then the GSSManager should ignore this request. If the GSSManager implementation does not support an SPI with a pluggable provider architecture it should throw a GSSException with the status code GSSException.UNAVAILABLE to indicate that the operation is unavailable. Suppose an application desired that when a mechanism of Oid m1 is needed the system default providers always be checked first, and only when they do not support m1 should a provider A be checked. It would then make the call:
GSSManager mgr = GSSManager.getInstance();
mgr.addProviderAtEnd(A, m1);
Now, if it also desired that for all mechanisms the provider B be
checked after all configured providers have been checked, it would
then call:
mgr.addProviderAtEnd(B, null);
Effectively the list of preferences now becomes {..., (A, m1), (B,
null)}.Suppose at a later time the following call is made to the same GSSManager instance:
mgr.addProviderAtEnd(B, m2)
then the previous setting with the pair (B, null) subsumes this and
therefore this request should be ignored. The same would happen if a
request is made for the already existing pairs of (A, m1) or (B,
null).Please note, however, that the following call:
mgr.addProviderAtEnd(A, null)
is not subsumed by the previous setting of (A, m1) and the list will
effectively become {..., (A, m1), (B, null), (A, null)}
| |
| addProviderAtFront | back to summary |
|---|---|
| public void addProviderAtFront(Provider p, Oid mech) throws GSSException Implements abstract org. Doc from org. This method is used to indicate to the GSSManager that the
application would like a particular provider to be used ahead of all
others when support is desired for the given mechanism. When a value
of null is used instead of an
Calling this method repeatedly preserves the older settings but
lowers them in preference thus forming an ordered list of provider
and
Calling addProviderAtFront with a null If the GSSManager implementation does not support an SPI with a pluggable provider architecture it should throw a GSSException with the status code GSSException.UNAVAILABLE to indicate that the operation is unavailable. Suppose an application desired that the provider A always be checked first when any mechanism is needed, it would call:
GSSManager mgr = GSSManager.getInstance();
// mgr may at this point have its own pre-configured list
// of provider preferences. The following will prepend to
// any such list:
mgr.addProviderAtFront(A, null);
Now if it also desired that the mechanism of Oid m1 always be
obtained from the provider B before the previously set A was checked,
it would call:
mgr.addProviderAtFront(B, m1);
The GSSManager would then first check with B if m1 was needed. In
case B did not provide support for m1, the GSSManager would continue
on to check with A. If any mechanism m2 is needed where m2 is
different from m1 then the GSSManager would skip B and check with A
directly.Suppose at a later time the following call is made to the same GSSManager instance:
mgr.addProviderAtFront(B, null)
then the previous setting with the pair (B, m1) is subsumed by this
and should be removed. Effectively the list of preferences now
becomes {(B, null), (A, null),
... //followed by the pre-configured list.Please note, however, that the following call:
mgr.addProviderAtFront(A, m3)
does not subsume the previous setting of (A, null) and the list will
effectively become {(A, m3), (B, null), (A, null), ...}
| |
| createContext | back to summary |
|---|---|
| public GSSContext createContext(GSSName peer, Oid mech, GSSCredential myCred, int lifetime) throws GSSException Implements abstract org. Doc from org. Factory method for creating a context on the initiator's side.
Non-default values for lifetime cannot always be honored by the
underlying mechanism, thus applications should be prepared to call
| |
| createContext | back to summary |
|---|---|
| public GSSContext createContext(GSSCredential myCred) throws GSSException Implements abstract org. Doc from org. Factory method for creating a context on the acceptor' side. The context's properties will be determined from the input token supplied to the accept method.
| |
| createContext | back to summary |
|---|---|
| public GSSContext createContext(byte[] interProcessToken) throws GSSException Implements abstract org. Doc from org. Factory method for creating a previously exported context. The context properties will be determined from the input token and cannot be modified through the set methods.
Implementations are not required to support the inter-process
transfer of security contexts. Before exporting a context, calling
the
| |
| createCredential | back to summary |
|---|---|
| public GSSCredential createCredential(int usage) throws GSSException Implements abstract org. Doc from org. Factory method for acquiring default credentials. This will cause the GSS-API to use system specific defaults for the set of mechanisms, name, and lifetime.
| |
| createCredential | back to summary |
|---|---|
| public GSSCredential createCredential(GSSName aName, int lifetime, Oid mech, int usage) throws GSSException Implements abstract org. Doc from org. Factory method for acquiring a single mechanism credential.
Non-default values for lifetime cannot always be honored by the
underlying mechanisms, thus applications should be prepared to call
| |
| createCredential | back to summary |
|---|---|
| public GSSCredential createCredential(GSSName aName, int lifetime, Oid[] mechs, int usage) throws GSSException Implements abstract org. Doc from org. Factory method for acquiring credentials over a set of
mechanisms. This method attempts to acquire credentials for
each of the mechanisms specified in the array called mechs. To
determine the list of mechanisms for which the acquisition of
credentials succeeded, the caller should use the
Non-default values for lifetime cannot always be honored by the
underlying mechanisms, thus applications should be prepared to call
| |
| createName | back to summary |
|---|---|
| public GSSName createName(String nameStr, Oid nameType) throws GSSException Implements abstract org. Doc from org. Factory method to convert a string name from the
specified namespace to a GSSName object. In general, the
| |
| createName | back to summary |
|---|---|
| public GSSName createName(byte[] name, Oid nameType) throws GSSException Implements abstract org. Doc from org. Factory method to convert a byte array containing a
name from the specified namespace to a GSSName object. In general,
the
| |
| createName | back to summary |
|---|---|
| public GSSName createName(String nameStr, Oid nameType, Oid mech) throws GSSException Implements abstract org. Doc from org. Factory method to convert a string name from the
specified namespace to a GSSName object and canonicalize it at the
same time for a mechanism. In other words, this method is
a utility that does the equivalent of two steps: the
| |
| createName | back to summary |
|---|---|
| public GSSName createName(byte[] name, Oid nameType, Oid mech) throws GSSException Implements abstract org. Doc from org. Factory method to convert a byte array containing a
name from the specified namespace to a GSSName object and canonicalize
it at the same time for a mechanism. In other words, this method is a
utility that does the equivalent of two steps: the
| |
| getCredentialElement | back to summary |
|---|---|
| public GSSCredentialSpi getCredentialElement(GSSNameSpi name, int initLifetime, int acceptLifetime, Oid mech, int usage) throws GSSException | |
| getMechanismContext | back to summary |
|---|---|
| pack-priv GSSContextSpi getMechanismContext(GSSNameSpi peer, GSSCredentialSpi myInitiatorCred, int lifetime, Oid mech) throws GSSException | |
| getMechanismContext | back to summary |
|---|---|
| pack-priv GSSContextSpi getMechanismContext(GSSCredentialSpi myAcceptorCred, Oid mech) throws GSSException | |
| getMechanismContext | back to summary |
|---|---|
| pack-priv GSSContextSpi getMechanismContext(byte[] exportedContext) throws GSSException | |
| getMechs | back to summary |
|---|---|
| public Oid[] getMechs() Implements abstract org. Doc from org. Returns a list of mechanisms that are available to GSS-API callers
through this GSSManager. The default GSSManager obtained from the
| |
| getMechsForName | back to summary |
|---|---|
| public Oid[] getMechsForName(Oid nameType) Implements abstract org. Doc from org. Returns a list of mechanisms that support the indicated name type.
The Kerberos v5 mechanism ("1.2.840.113554.1.2.2") will always be
returned in this list when the indicated nametype is one of
| |
| getNameElement | back to summary |
|---|---|
| public GSSNameSpi getNameElement(String name, Oid nameType, Oid mech) throws GSSException | |
| getNameElement | back to summary |
|---|---|
| public GSSNameSpi getNameElement(byte[] name, Oid nameType, Oid mech) throws GSSException | |
| getNamesForMech | back to summary |
|---|---|
| public Oid[] getNamesForMech(Oid mech) throws GSSException Implements abstract org. Doc from org. Returns then name types supported by the indicated mechanism.
The default GSSManager instance includes support for the Kerberos v5
mechanism. When this mechanism ("1.2.840.113554.1.2.2") is indicated,
the returned list will contain at least the following nametypes:
| |
| wrap | back to summary |
|---|---|
| pack-priv static GSSCredential wrap(GSSCredentialImpl cred) | |
| wrap | back to summary |
|---|---|
| pack-priv static GSSContext wrap(GSSContextImpl ctxt) | |