Modifier and Type | Field and Description |
---|---|
private APReq | |
private Authenticator | |
private Credentials | |
private KerberosTime | |
private int | |
private static final char[] | |
private byte[] | |
private static ReplayCache |
Access | Constructor and Description |
---|---|
public | KrbApReq(Credentials
the tgsCred, boolean Credentials to be used to construct the
AP Request protocol message.Whether mutual authentication is required mutualRequired, boolean Whether the subkey is to be used to protect this
specific application session. If this is not set then the
session key from the ticket will be used. useSubKey, boolean useSeqNumber, Checksum checksum of the application data that accompanies
the KRB_AP_REQ. cksum)Constructs an AP-REQ message to send to the peer. |
public | KrbApReq(byte[]
The message received from the peer message, Krb5AcceptCredential KrbAcceptCredential containing keys to decrypt
the message; key selected will depend on etype used to encrypt dataConstructs an AP-REQ message from the bytes received from the peer. |
pack-priv | KrbApReq(APOptions apOptions, Ticket ticket, EncryptionKey key, PrincipalName cname, Checksum cksum, KerberosTime ctime, EncryptionKey subKey, SeqNumber seqNumber, AuthorizationData authorizationData)
used by KrbTgsReq |
Modifier and Type | Method and Description |
---|---|
private void | |
private static void | |
private void | createMessage(APOptions apOptions, Ticket ticket, EncryptionKey key, PrincipalName cname, Checksum cksum, KerberosTime ctime, EncryptionKey subKey, SeqNumber seqNumber, AuthorizationData authorizationData, int usage)
|
pack-priv int | |
pack-priv void | |
pack-priv void | |
pack-priv APOptions | |
public Checksum | |
public PrincipalName | |
public Credentials | |
pack-priv KerberosTime | |
public byte[] | |
public boolean | getMutualAuthRequired()
Returns true if mutual authentication is required and hence an AP-REP will need to be generated. |
public Integer | |
public EncryptionKey | |
private void | init(APOptions options, Credentials tgs_creds, Checksum cksum, EncryptionKey subKey, SeqNumber seqNumber, AuthorizationData authorizationData, int usage)
|
private void | init(APOptions apOptions, Ticket ticket, EncryptionKey key, PrincipalName cname, Checksum cksum, KerberosTime ctime, EncryptionKey subKey, SeqNumber seqNumber, AuthorizationData authorizationData, int usage)
|
pack-priv boolean |
apReqMessg | back to summary |
---|---|
private APReq apReqMessg |
authenticator | back to summary |
---|---|
private Authenticator authenticator |
creds | back to summary |
---|---|
private Credentials creds |
ctime | back to summary |
---|---|
private KerberosTime ctime |
cusec | back to summary |
---|---|
private int cusec |
hexConst | back to summary |
---|---|
private static final char[] hexConst |
obuf | back to summary |
---|---|
private byte[] obuf |
rcache | back to summary |
---|---|
private static ReplayCache rcache |
KrbApReq | back to summary |
---|---|
public KrbApReq(Credentials tgsCred, boolean mutualRequired, boolean useSubKey, boolean useSeqNumber, Checksum cksum) throws Asn1Exception, KrbCryptoException, KrbException, IOException Constructs an AP-REQ message to send to the peer.
|
KrbApReq | back to summary |
---|---|
public KrbApReq(byte[] message, Krb5AcceptCredential cred, InetAddress initiator) throws KrbException, IOException Constructs an AP-REQ message from the bytes received from the peer.
|
KrbApReq | back to summary |
---|---|
pack-priv KrbApReq(APOptions apOptions, Ticket ticket, EncryptionKey key, PrincipalName cname, Checksum cksum, KerberosTime ctime, EncryptionKey subKey, SeqNumber seqNumber, AuthorizationData authorizationData) throws Asn1Exception, IOException, KdcErrException, KrbCryptoException used by KrbTgsReq |
authenticate | back to summary |
---|---|
private void authenticate(Krb5AcceptCredential cred, InetAddress initiator) throws KrbException, IOException |
checkPermittedEType | back to summary |
---|---|
private static void checkPermittedEType(int target) throws KrbException |
createMessage | back to summary |
---|---|
private void createMessage(APOptions apOptions, Ticket ticket, EncryptionKey key, PrincipalName cname, Checksum cksum, KerberosTime ctime, EncryptionKey subKey, SeqNumber seqNumber, AuthorizationData authorizationData, int usage) throws Asn1Exception, IOException, KdcErrException, KrbCryptoException |
cusec | back to summary |
---|---|
pack-priv int cusec() |
decode | back to summary |
---|---|
pack-priv void decode() throws KrbException, IOException |
decode | back to summary |
---|---|
pack-priv void decode(DerValue encoding) throws KrbException, IOException |
getAPOptions | back to summary |
---|---|
pack-priv APOptions getAPOptions() throws KrbException, IOException |
getChecksum | back to summary |
---|---|
public Checksum getChecksum() Returns the optional Checksum stored in the Authenticator for this message. Returns null if none is stored. |
getClient | back to summary |
---|---|
public PrincipalName getClient() Returns the principal name of the client that generated this message. |
getCreds | back to summary |
---|---|
public Credentials getCreds() Returns the credentials that are contained in the ticket that is part of this AP-REQ. |
getCtime | back to summary |
---|---|
pack-priv KerberosTime getCtime() |
getMessage | back to summary |
---|---|
public byte[] getMessage() Returns the ASN.1 encoding that should be sent to the peer. |
getMutualAuthRequired | back to summary |
---|---|
public boolean getMutualAuthRequired() throws KrbException, IOException Returns true if mutual authentication is required and hence an AP-REP will need to be generated. |
getSeqNumber | back to summary |
---|---|
public Integer getSeqNumber() Returns the optional sequence number stored in the Authenticator for this message. Returns null if none is stored. |
getSubKey | back to summary |
---|---|
public EncryptionKey getSubKey() Returns the optional subkey stored in the Authenticator for this message. Returns null if none is stored. |
init | back to summary |
---|---|
private void init(APOptions options, Credentials tgs_creds, Checksum cksum, EncryptionKey subKey, SeqNumber seqNumber, AuthorizationData authorizationData, int usage) throws KrbException, IOException |
init | back to summary |
---|---|
private void init(APOptions apOptions, Ticket ticket, EncryptionKey key, PrincipalName cname, Checksum cksum, KerberosTime ctime, EncryptionKey subKey, SeqNumber seqNumber, AuthorizationData authorizationData, int usage) throws Asn1Exception, IOException, KdcErrException, KrbCryptoException |
useSessionKey | back to summary |
---|---|
pack-priv boolean useSessionKey() throws KrbException, IOException |