APIdia Launch Partner
Top Constructors Methods
com.sun.security.jgss

pack-priv Class ExtendedGSSContextImpl

extends GSSContextImpl
implements ExtendedGSSContext
Class Inheritance
All Implemented Interfaces
com.sun.security.jgss.ExtendedGSSContext, org.ietf.jgss.GSSContext
Imports
org.ietf.jgss.*, sun.security.jgss.GSSContextImpl, sun.security.krb5.internal.AuthorizationData

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object
inquireSecContext(InquireType type)

Implements com.sun.security.jgss.ExtendedGSSContext.inquireSecContext.

Return the mechanism-specific attribute associated with type.

Inherited from sun.security.jgss.GSSContextImpl:
acceptSecContextacceptSecContextdisposeexportgetAnonymityStategetConfStategetCredDelegStategetDelegCredgetDelegPolicyStategetIntegStategetLifetimegetMechgetMICgetMICgetMutualAuthStategetReplayDetStategetSequenceDetStategetSrcNamegetTargNamegetWrapSizeLimitinitSecContextinitSecContextinquireSecContextisEstablishedisInitiatorisProtReadyisTransferablerequestAnonymityrequestConfrequestCredDelegrequestDelegPolicyrequestIntegrequestLifetimerequestMutualAuthrequestReplayDetrequestSequenceDetsetChannelBindingunwrapunwrapverifyMICverifyMICwrapwrap

Constructor Detail

ExtendedGSSContextImplback to summary
public ExtendedGSSContextImpl(GSSContextImpl old)

Method Detail

inquireSecContextback to summary
public Object inquireSecContext(InquireType type) throws GSSException

Implements com.sun.security.jgss.ExtendedGSSContext.inquireSecContext.

Doc from com.sun.security.jgss.ExtendedGSSContext.inquireSecContext.

Return the mechanism-specific attribute associated with type.

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
         }
     }
Annotations
@Override
Exceptions
GSSException:
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.