| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | Krb5Context.
The session key returned by inquireSecContext(KRB5_INQ_SSPI_SESSION_KEY) |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| private KrbApReq | |
| private String | |
| private AuthorizationData | |
| private final GSSCaller | |
| private ChannelBinding | |
| private CipherHelper | |
| private boolean | |
| private boolean | |
| private Krb5CredElement | |
| private boolean | |
| private final boolean | |
| public static final int | |
| private boolean | |
| private boolean | |
| private EncryptionKey | |
| private int | |
| private int | |
| private boolean | |
| private Krb5CredElement | |
| private Krb5NameElement | |
| private int | |
| private final Object | |
| private Krb5NameElement | |
| private final Object | |
| private TokenTracker | |
| private boolean | |
| private boolean | |
| private Credentials | |
| public static final int | |
| private int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private Credentials | |
| private boolean[] |
| Access | Constructor and Description |
|---|---|
| pack-priv | Krb5Context(GSSCaller caller, Krb5NameElement peerName, Krb5CredElement myCred, int lifetime)
Constructor for Krb5Context to be called on the context initiator's side. |
| pack-priv | Krb5Context(GSSCaller caller, Krb5CredElement myCred)
Constructor for Krb5Context to be called on the context acceptor's side. |
| public | Krb5Context(GSSCaller caller, byte[] interProcessToken)
Constructor for Krb5Context to import a previously exported context. |
| Modifier and Type | Method and Description |
|---|---|
| public final byte[] | Returns: any token required to be sent to the peer It is responsibility of the caller to send the token to its peer for processing.contains the token received from the peer. is, int mechTokenSize)Implements sun. Acceptor's context establishment call. |
| public final void | dispose()
Implements sun. Releases context resources and terminates the context between 2 peer. |
| public final byte[] | export()
Implements sun. Produces a token representing this context. |
| public final boolean | |
| pack-priv GSSCaller | |
| pack-priv final ChannelBinding | |
| pack-priv final CipherHelper | getCipherHelper(EncryptionKey ckey)
Get the context specific DESCipher instance, invoked in MessageToken.init() |
| public final boolean | getConfState()
Implements sun. Is confidentiality available? |
| public final boolean | getCredDelegState()
Implements sun. Is credential delegation enabled? |
| public final GSSCredentialSpi | Returns: GSSCredentialSpi object for the delegated credentialImplements sun. Returns the delegated credential for the context. |
| public final boolean | getDelegPolicyState()
Implements sun. Is deleg policy respected? |
| private static String | |
| public final boolean | getIntegState()
Implements sun. Is integrity available? |
| private EncryptionKey | |
| public final int | |
| public final int | getLifetime()
Implements sun. The lifetime remaining for this context. |
| public final Oid | Returns: the Oid of this contextImplements sun. Returns the mechanism oid. |
| public final byte[] | getMIC(byte[] inMsg, int offset, int len, MessageProp msgProp)
Implements sun.
|
| private int | |
| private void | |
| public final void | getMIC(InputStream is, OutputStream os, MessageProp msgProp)
Implements sun. Applies per-message integrity services. |
| public final boolean | getMutualAuthState()
Implements sun. Is mutual authentication enabled? |
| public final Provider | |
| public final boolean | getReplayDetState()
Implements sun. Is replay detection enabled on the GSS wrap and MIC tokens? |
| public final boolean | getSequenceDetState()
Implements sun. Is sequence checking enabled on the GSS Wrap and MIC tokens? |
| public final GSSNameSpi | Returns: initiator nameImplements sun. Returns the context initiator name. |
| public final GSSNameSpi | Returns: context acceptor(target) nameImplements sun. Returns the context acceptor. |
| public final int | Returns: the maximum size for the input message that can be provided to the wrap() method in order to guarantee that these requirements are met.the quality of protection that the context will be
asked to provide. qop, boolean a flag indicating whether confidentiality will be
requested or not confReq, int maxTokSize)Implements sun. Queries the context for largest data size to accommodate the specified protection and be <= maxTokSize. |
| pack-priv final int | |
| public final byte[] | Returns: any token required to be sent to the peer It is responsibility of the caller to send the token to its peer for processing.contains the token received from the peer. On the
first call it will be ignored. is, int mechTokenSize)Implements sun. Initiator context establishment call. |
| public Object | inquireSecContext(String type)
Implements sun. Return the mechanism-specific attribute associated with |
| public final boolean | |
| public final boolean | Returns: boolean indicating if this is initiator (true) or target (false)Implements sun. Tests if this is the initiator side of the context. |
| public final boolean | Returns: boolean indicating if per-message methods can be called.Implements sun. Tests if the context can be used for per-message service. |
| public final boolean | isTransferable()
Implements sun. Method to determine if the context can be exported and then re-imported. |
| private static String | |
| public final void | |
| public final void | requestConf(boolean value)
Implements sun. Requests that confidentiality be available. |
| public final void | requestCredDeleg(boolean value)
Implements sun. Requests that credential delegation be done during context establishment. |
| public final void | requestDelegPolicy(boolean value)
Implements sun. Requests that the deleg policy be respected. |
| public final void | requestInteg(boolean value)
Implements sun. Requests that integrity be available. |
| public void | requestLifetime(int lifetime)
Implements sun. Requests the desired lifetime. |
| public final void | requestMutualAuth(boolean value)
Implements sun. Requests that mutual authentication be done during context establishment. |
| public final void | requestReplayDet(boolean value)
Implements sun. Requests that replay detection be done on the GSS wrap and MIC tokens. |
| public final void | requestSequenceDet(boolean value)
Implements sun. Requests that sequence checking be done on the GSS wrap and MIC tokens. |
| pack-priv final void | |
| pack-priv final void | |
| public void | |
| public void | |
| public final void | setChannelBinding(ChannelBinding channelBinding)
Implements sun. Sets the channel bindings to be used during context establishment. |
| pack-priv final void | |
| pack-priv final void | |
| pack-priv final void | setDelegCred(Krb5CredElement delegatedCred)
Called on the acceptor side to store the delegated credentials received in the AcceptSecContextToken. |
| pack-priv final void | |
| pack-priv final void | |
| pack-priv final void | |
| pack-priv final void | |
| pack-priv final void | |
| pack-priv final void | |
| private void | setSequencingAndReplayProps(MessageToken token, MessageProp prop)
Sets replay and sequencing information for a message token received form the peer. |
| private void | setSequencingAndReplayProps(MessageToken_v2 token, MessageProp prop)
Sets replay and sequencing information for a message token received form the peer. |
| public void | |
| private void | |
| public final byte[] | unwrap(byte[] inBuf, int offset, int len, MessageProp msgProp)
Implements sun. For apps that want simplicity and don't care about buffer copies. |
| public final int | |
| public final int | |
| public final void | unwrap(InputStream is, OutputStream os, MessageProp msgProp)
Implements sun. Retrieves the message token previously encapsulated in the wrap call. |
| public final void | verifyMIC(byte[] inTok, int tokOffset, int tokLen, byte[] inMsg, int msgOffset, int msgLen, MessageProp msgProp)
Implements sun.
|
| private void | |
| public final void | verifyMIC(InputStream is, InputStream msgStr, MessageProp mProp)
Implements sun. Checks the integrity of the supplied tokens. |
| public final byte[] | wrap(byte[] inBuf, int offset, int len, MessageProp msgProp)
Implements sun. For apps that want simplicity and don't care about buffer copies. |
| public final int | |
| public final void | |
| public final void | wrap(InputStream is, OutputStream os, MessageProp msgProp)
Implements sun. Provides per-message token encapsulation. |