APIdia Launch Partner
Top Fields Constructors Methods
sun.security.jgss.krb5

pack-priv Class InitSecContextToken

extends InitialToken
Class Inheritance
Imports
org.ietf.jgss.*, java.io.InputStream, .IOException, sun.security.krb5.*, java.net.InetAddress, sun.security.krb5.internal.AuthorizationData, .KerberosTime

Field Summary

Modifier and TypeField and Description
private static final boolean
private final KrbApReq

Constructor Summary

AccessConstructor and Description
pack-priv
InitSecContextToken(Krb5Context context, Credentials tgt, Credentials serviceTicket)

For the context initiator to call.

pack-priv
InitSecContextToken(Krb5Context context, Krb5AcceptCredential cred, InputStream is)

For the context acceptor to call.

Method Summary

Modifier and TypeMethod and Description
public final byte[]
public final KrbApReq

Field Detail

ACCEPTOR_USE_INITIATOR_SEQNUMback to summary
private static final boolean ACCEPTOR_USE_INITIATOR_SEQNUM
apReqback to summary
private final KrbApReq apReq

Constructor Detail

InitSecContextTokenback to summary
pack-priv InitSecContextToken(Krb5Context context, Credentials tgt, Credentials serviceTicket) throws KrbException, IOException, GSSException

For the context initiator to call. It constructs a new InitSecContextToken to send over to the peer containing the desired flags and the AP-REQ. It also updates the context with the local sequence number and shared context key. (When mutual auth is enabled the peer has an opportunity to renegotiate the session key in the followup AcceptSecContextToken that it sends.)

InitSecContextTokenback to summary
pack-priv InitSecContextToken(Krb5Context context, Krb5AcceptCredential cred, InputStream is) throws IOException, GSSException, KrbException

For the context acceptor to call. It reads the bytes out of an InputStream and constructs an InitSecContextToken with them.

Method Detail

encodeback to summary
public final byte[] encode() throws IOException

Implements abstract sun.security.jgss.krb5.InitialToken.encode.

getKrbApReqback to summary
public final KrbApReq getKrbApReq()