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

public Class KrbCred

extends Object
Class Inheritance
Imports
sun.security.krb5.internal.*, sun.security.krb5.internal.crypto.KeyUsage, java.io.IOException, sun.security.util.DerValue

This class encapsulates the KRB-CRED message that a client uses to send its delegated credentials to a server. Supports delegation of one ticket only.
Author
Mayank Upadhyay

Field Summary

Modifier and TypeField and Description
private KRBCred
private Credentials
private EncKrbCredPart
private byte[]
private Ticket
private KerberosTime

Constructor Summary

AccessConstructor and Description
public
KrbCred(Credentials tgt, Credentials serviceTicket, EncryptionKey key)

public
KrbCred(byte[] asn1Message, EncryptionKey key)

Method Summary

Modifier and TypeMethod and Description
pack-priv KRBCred
public Credentials[]
getDelegatedCreds()

Returns the delegated credentials from the peer.

public byte[]
getMessage()

Returns the ASN.1 encoding that should be sent to the peer.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

credMessgback to summary
private KRBCred credMessg
credsback to summary
private Credentials creds
encPartback to summary
private EncKrbCredPart encPart
obufback to summary
private byte[] obuf
ticketback to summary
private Ticket ticket
timeStampback to summary
private KerberosTime timeStamp

Constructor Detail

KrbCredback to summary
public KrbCred(Credentials tgt, Credentials serviceTicket, EncryptionKey key) throws KrbException, IOException
KrbCredback to summary
public KrbCred(byte[] asn1Message, EncryptionKey key) throws KrbException, IOException

Method Detail

createMessageback to summary
pack-priv KRBCred createMessage(Credentials delegatedCreds, EncryptionKey key) throws KrbException, IOException
getDelegatedCredsback to summary
public Credentials[] getDelegatedCreds()

Returns the delegated credentials from the peer.

getMessageback to summary
public byte[] getMessage()

Returns the ASN.1 encoding that should be sent to the peer.