org.ietf.jgss.GSSContext,
such as querying context-specific attributes.
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public Object | Returns: the attribute, see the method documentation for details.the type of the attribute requested type)Return the mechanism-specific attribute associated with |
| public void | requestDelegPolicy(boolean
true if the policy should be respected state)Requests that the delegation policy be respected. |
| getDelegPolicyState | back to summary |
|---|---|
| public boolean getDelegPolicyState() Returns the delegation policy response. Called after a security context
is established. This method can be only called on the initiator's side.
See
| |
| inquireSecContext | back to summary |
|---|---|
| public Object inquireSecContext(InquireType type) throws GSSException Return the mechanism-specific attribute associated with 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
}
}
| |
| requestDelegPolicy | back to summary |
|---|---|
| public void requestDelegPolicy(boolean state) throws GSSException Requests that the delegation policy be respected. When a true value is
requested, the underlying context would use the delegation policy
defined by the environment as a hint to determine whether credentials
delegation should be performed. This request can only be made on the
context initiator's side and it has to be done prior to the first
call to
When this flag is false, delegation will only be tried when the
When this flag is true but the
When both this flag and the
In any case, if the delegation is not successful, the value returned
by
Not all mechanisms support delegation policy. Therefore, the
application should check to see if the request was honored with the
Note for the Kerberos 5 mechanism, the delegation policy is expressed through the OK-AS-DELEGATE flag in the service ticket. When it's true, the KDC permits delegation to the target server. In a cross-realm environment, in order for delegation be permitted, all cross-realm TGTs on the authentication path must also have the OK-AS-DELAGATE flags set.
| |