public interface ExtendedGSSCredential
extends org.ietf.jgss.GSSCredential
Modifier and Type | Field and Description |
---|---|
static int |
IMPEXP_MECH_SPECIFIC |
static int |
IMPEXP_OPAQUE |
Modifier and Type | Method and Description |
---|---|
byte[] |
export(int option)
Exports this credential so that another process might import it.
|
byte[] |
export(int option,
org.ietf.jgss.Oid mech)
Exports this credential so that another process might import it.
|
java.lang.Object |
inquireByOid(org.ietf.jgss.Oid oid)
Retrieves arbitrary data about this credential.
|
static final int IMPEXP_OPAQUE
static final int IMPEXP_MECH_SPECIFIC
byte[] export(int option) throws org.ietf.jgss.GSSException
ExtendedGSSManager.createCredential
method.option
- The export type. If set to ExtendedGSSCredential.IMPEXP_OPAQUE
exported buffer is an opaque
buffer suitable for storage in memory or on disk or passing to
another process. If set to ExtendedGSSCredential.IMPEXP_MECH_SPECIFIC
exported buffer is a
buffer filled with mechanism-specific information that the calling
application can use to pass the credential to another process that
is not written to the GSS-API.org.ietf.jgss.GSSException
- containing the following major error codes:
GSSException.CREDENTIAL_EXPIRED,
GSSException.UNAVAILABLE, GSSException.FAILURE
byte[] export(int option, org.ietf.jgss.Oid mech) throws org.ietf.jgss.GSSException
ExtendedGSSManager.createCredential
method.option
- The export type. If set to ExtendedGSSCredential.IMPEXP_OPAQUE
exported buffer is an opaque
buffer suitable for storage in memory or on disk or passing to
another process. If set to ExtendedGSSCredential.IMPEXP_MECH_SPECIFIC
exported buffer is a buffer
filled with mechanism-specific information that the calling application
can use to pass the credential to another process that is not written
to the GSS-API.mech
- Desired mechanism for exported credential, may be null to
indicate system default.org.ietf.jgss.GSSException
- containing the following major error codes:
GSSException.CREDENTIAL_EXPIRED,
GSSException.UNAVAILABLE, GSSException.BAD_MECH, GSSException.FAILURE
java.lang.Object inquireByOid(org.ietf.jgss.Oid oid) throws org.ietf.jgss.GSSException
oid
- the oid of the information desired.org.ietf.jgss.GSSException
- containing the following major error codes:
GSSException.FAILURE
Copyright © 2012. All Rights Reserved.