public interface ExtendedGSSCredential extends GSSCredential
Modifier and Type | Field and Description |
---|---|
static int |
IMPEXP_MECH_SPECIFIC |
static int |
IMPEXP_OPAQUE |
ACCEPT_ONLY, DEFAULT_LIFETIME, INDEFINITE_LIFETIME, INITIATE_AND_ACCEPT, INITIATE_ONLY
Modifier and Type | Method and Description |
---|---|
byte[] |
export(int option)
Exports this credential so that another process might import it.
|
byte[] |
export(int option,
Oid mech)
Exports this credential so that another process might import it.
|
Object |
inquireByOid(Oid oid)
Retrieves arbitrary data about this credential.
|
add, dispose, equals, getMechs, getName, getName, getRemainingAcceptLifetime, getRemainingInitLifetime, getRemainingLifetime, getUsage, getUsage, hashCode
static final int IMPEXP_OPAQUE
static final int IMPEXP_MECH_SPECIFIC
byte[] export(int option) throws 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.GSSException
- containing the following major error codes:
GSSException.CREDENTIAL_EXPIRED,
GSSException.UNAVAILABLE, GSSException.FAILURE
byte[] export(int option, Oid mech) throws 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.GSSException
- containing the following major error codes:
GSSException.CREDENTIAL_EXPIRED,
GSSException.UNAVAILABLE, GSSException.BAD_MECH, GSSException.FAILURE
Object inquireByOid(Oid oid) throws GSSException
oid
- the oid of the information desired.GSSException
- containing the following major error codes:
GSSException.FAILURE
Copyright © 2016. All rights reserved.