public static class ExtendedGSSContext.ExtendedGSSContextImpl extends sun.security.jgss.GSSContextImpl implements ExtendedGSSContext
ExtendedGSSContext.ExtendedGSSContextImpl
DEFAULT_LIFETIME, INDEFINITE_LIFETIME
Constructor and Description |
---|
ExtendedGSSContextImpl(sun.security.jgss.GSSContextImpl old) |
Modifier and Type | Method and Description |
---|---|
Object |
inquireSecContext(InquireType type)
Return the mechanism-specific attribute associated with
type . |
getDelegPolicyState, requestDelegPolicy
acceptSecContext, acceptSecContext, dispose, export, getAnonymityState, getConfState, getCredDelegState, getDelegCred, getIntegState, getLifetime, getMech, getMIC, getMIC, getMutualAuthState, getReplayDetState, getSequenceDetState, getSrcName, getTargName, getWrapSizeLimit, initSecContext, initSecContext, isEstablished, isInitiator, isProtReady, isTransferable, requestAnonymity, requestConf, requestCredDeleg, requestInteg, requestLifetime, requestMutualAuth, requestReplayDet, requestSequenceDet, setChannelBinding, unwrap, unwrap, verifyMIC, verifyMIC, wrap, wrap
acceptSecContext, acceptSecContext, dispose, export, getAnonymityState, getConfState, getCredDelegState, getDelegCred, getDelegPolicyState, getIntegState, getLifetime, getMech, getMIC, getMIC, getMutualAuthState, getReplayDetState, getSequenceDetState, getSrcName, getTargName, getWrapSizeLimit, initSecContext, initSecContext, inquireSecContext, isEstablished, isInitiator, isProtReady, isTransferable, requestAnonymity, requestConf, requestCredDeleg, requestDelegPolicy, requestInteg, requestLifetime, requestMutualAuth, requestReplayDet, requestSequenceDet, setChannelBinding, unwrap, unwrap, verifyMIC, verifyMIC, wrap, wrap
public ExtendedGSSContextImpl(sun.security.jgss.GSSContextImpl old)
public Object inquireSecContext(InquireType type) throws GSSException
ExtendedGSSContext
type
.
If there is a security manager, an InquireSecContextPermission
with the name type.mech
must be granted. Otherwise, this could
result in a SecurityException
.
Example:
GSSContext ctxt = m.createContext(...) // Establishing the context if (ctxt instanceof ExtendedGSSContext) { ExtendedGSSContext ex = (ExtendedGSSContext)ctxt; try { Key key = (key)ex.inquireSecContext( InquireType.KRB5_GET_SESSION_KEY); // read key info } catch (GSSException gsse) { // deal with exception } }
inquireSecContext
in interface ExtendedGSSContext
type
- the type of the attribute requestedGSSException
- containing the following
major error codes:
GSSException.BAD_MECH
if the mechanism
does not support this method,
GSSException.UNAVAILABLE
if the
type specified is not supported,
GSSException.NO_CONTEXT
if the
security context is invalid,
GSSException.FAILURE
for other
unspecified failures.InquireSecContextPermission
,
InquireType
Copyright © 2000, 2016, Oracle and/or its affiliates. All rights reserved.
DRAFT 9-internal+0-2016-04-22-203349.buildd.src