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

pack-priv final Class KrbAsRep

extends KrbKdcRep
Class Inheritance
Imports
sun.security.krb5.internal.*, sun.security.krb5.internal.crypto.KeyUsage, .EType, sun.security.util.*, java.io.IOException, java.util.Objects, javax.security.auth.kerberos.KeyTab, sun.security.jgss.krb5.Krb5Util

This class encapsulates a AS-REP message that the KDC sends to the client.

Field Summary

Modifier and TypeField and Description
private Credentials
private ASRep

Constructor Summary

AccessConstructor and Description
pack-priv
KrbAsRep(byte[] ibuf)

Method Summary

Modifier and TypeMethod and Description
private void
decrypt(EncryptionKey
the decryption key to use
dkey
,
KrbAsReq
the original AS-REQ sent, used to validate AS-REP
asReq
,
PrincipalName cname)

Decrypts encrypted content inside AS-REP.

pack-priv void
decryptUsingKeyTab(KeyTab
the keytab, not null
ktab
,
KrbAsReq
the original AS-REQ sent, used to validate AS-REP
asReq
,
PrincipalName
the user principal name, used to locate keys in ktab
cname
)

Called by KrbAsReqBuilder to resolve a AS-REP message using a keytab.

pack-priv void
decryptUsingPassword(char[]
user provided password. not null
password
,
KrbAsReq
the original AS-REQ sent, used to validate AS-REP
asReq
,
PrincipalName
the user principal name, used to provide salt
cname
)

Called by KrbAsReqBuilder to resolve a AS-REP message using a password.

pack-priv Credentials
pack-priv Credentials
pack-priv PAData[]
Inherited from sun.security.krb5.KrbKdcRep:
check

Field Detail

credsback to summary
private Credentials creds
repback to summary
private ASRep rep

Constructor Detail

KrbAsRepback to summary
pack-priv KrbAsRep(byte[] ibuf) throws KrbException, Asn1Exception, IOException

Method Detail

decryptback to summary
private void decrypt(EncryptionKey dkey, KrbAsReq asReq, PrincipalName cname) throws KrbException, Asn1Exception, IOException

Decrypts encrypted content inside AS-REP. Called by initiator.

Parameters
dkey:EncryptionKey

the decryption key to use

asReq:KrbAsReq

the original AS-REQ sent, used to validate AS-REP

decryptUsingKeyTabback to summary
pack-priv void decryptUsingKeyTab(KeyTab ktab, KrbAsReq asReq, PrincipalName cname) throws KrbException, Asn1Exception, IOException

Called by KrbAsReqBuilder to resolve a AS-REP message using a keytab.

Parameters
ktab:KeyTab

the keytab, not null

asReq:KrbAsReq

the original AS-REQ sent, used to validate AS-REP

cname:PrincipalName

the user principal name, used to locate keys in ktab

decryptUsingPasswordback to summary
pack-priv void decryptUsingPassword(char[] password, KrbAsReq asReq, PrincipalName cname) throws KrbException, Asn1Exception, IOException

Called by KrbAsReqBuilder to resolve a AS-REP message using a password.

Parameters
password:char[]

user provided password. not null

asReq:KrbAsReq

the original AS-REQ sent, used to validate AS-REP

cname:PrincipalName

the user principal name, used to provide salt

getCCredsback to summary
pack-priv Credentials getCCreds()
getCredsback to summary
pack-priv Credentials getCreds()
getPAback to summary
pack-priv PAData[] getPA()