public class GlobusGSSManagerImpl extends ExtendedGSSManager
GlobusGSSManager
.Constructor and Description |
---|
GlobusGSSManagerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addProviderAtEnd(Provider p,
Oid mech)
Currently not implemented.
|
void |
addProviderAtFront(Provider p,
Oid mech)
Currently not implemented.
|
static void |
checkMechanism(Oid mech)
Checks if the specified mechanism matches
the mechanism supported by this implementation.
|
GSSContext |
createContext(byte[] interProcessToken)
Currently not implemented.
|
GSSContext |
createContext(GSSCredential cred) |
GSSContext |
createContext(GSSName peer,
Oid mech,
GSSCredential cred,
int lifetime) |
GSSCredential |
createCredential(byte[] buff,
int option,
int lifetime,
Oid mech,
int usage)
Imports a credential.
|
GSSCredential |
createCredential(GSSName name,
int lifetime,
Oid[] mechs,
int usage)
Acquires GSI GSS credentials.
|
GSSCredential |
createCredential(GSSName name,
int lifetime,
Oid mech,
int usage)
Acquires GSI GSS credentials.
|
GSSCredential |
createCredential(int usage)
Acquires GSI GSS credentials.
|
GSSName |
createName(byte[] name,
Oid nameType)
Currently not implemented.
|
GSSName |
createName(byte[] name,
Oid nameType,
Oid mech)
Currently not implemented.
|
GSSName |
createName(String nameStr,
Oid nameType) |
GSSName |
createName(String nameStr,
Oid nameType,
Oid mech)
Currently not implemented.
|
Oid[] |
getMechs() |
Oid[] |
getMechsForName(Oid nameType)
Currently not implemented.
|
Oid[] |
getNamesForMech(Oid mech)
Currently not implemented.
|
getInstance
public GSSCredential createCredential(int usage) throws GSSException
createCredential
in class GSSManager
GSSException
createCredential(GSSName, int, Oid, int)
public GSSCredential createCredential(GSSName name, int lifetime, Oid mech, int usage) throws GSSException
createCredential
in class GSSManager
lifetime
- Only lifetime set to
GSSCredential.DEFAULT_LIFETIME
is allowed.GSSException
X509Credential.getDefaultCredential()
public GSSCredential createCredential(GSSName name, int lifetime, Oid[] mechs, int usage) throws GSSException
createCredential
in class GSSManager
GSSException
createCredential(GSSName, int, Oid, int)
public GSSCredential createCredential(byte[] buff, int option, int lifetime, Oid mech, int usage) throws GSSException
createCredential
in class ExtendedGSSManager
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.GSSException
- containing the following major error codes: GSSException.BAD_MECH,
GSSException.DEFECTIVE_TOKEN, GSSException.NO_CRED, GSSException.CREDENTIAL_EXPIRED,
GSSException.FAILURE
public GSSContext createContext(GSSName peer, Oid mech, GSSCredential cred, int lifetime) throws GSSException
createContext
in class GSSManager
GSSException
public GSSContext createContext(GSSCredential cred) throws GSSException
createContext
in class GSSManager
GSSException
public Oid[] getMechs()
getMechs
in class GSSManager
public GSSName createName(String nameStr, Oid nameType) throws GSSException
createName
in class GSSManager
GSSException
public static void checkMechanism(Oid mech) throws GSSException
mech
- mechanism to checkGSSException
- if mechanism not supported.public GSSContext createContext(byte[] interProcessToken) throws GSSException
createContext
in class GSSManager
GSSException
public Oid[] getNamesForMech(Oid mech) throws GSSException
getNamesForMech
in class GSSManager
GSSException
public Oid[] getMechsForName(Oid nameType)
getMechsForName
in class GSSManager
public GSSName createName(String nameStr, Oid nameType, Oid mech) throws GSSException
createName
in class GSSManager
GSSException
public GSSName createName(byte[] name, Oid nameType) throws GSSException
createName
in class GSSManager
GSSException
public GSSName createName(byte[] name, Oid nameType, Oid mech) throws GSSException
createName
in class GSSManager
GSSException
public void addProviderAtFront(Provider p, Oid mech) throws GSSException
addProviderAtFront
in class GSSManager
GSSException
public void addProviderAtEnd(Provider p, Oid mech) throws GSSException
addProviderAtEnd
in class GSSManager
GSSException
Copyright © 2016. All rights reserved.