com.ibm.security.krb5
Class KrbApReq
- java.lang.Object
com.ibm.security.krb5.KrbApReq
- public class KrbApReq
- extends java.lang.Object
Constructor Summary
Constructor and Description |
---|
KrbApReq(APOptions options,Credentials tgs_creds,Checksum cksum,EncryptionKey subKey,SeqNumber seqNumber,AuthorizationData authorizationData)
|
KrbApReq(APOptions apOptions,Ticket ticket,EncryptionKey key,Realm crealm,PrincipalName cname,Checksum cksum,KerberosTime ctime,EncryptionKey subKey,SeqNumber seqNumber,AuthorizationData authorizationData)
|
KrbApReq(byte[] request,Credentials serviceCreds,HostAddress sender)
|
KrbApReq(byte[] message,EncryptionKey key)
Contructs a AP-REQ message from the bytes received from the peer.
|
KrbApReq(Credentials tgsCred,boolean mutualRequired,boolean useSubKey,boolean useSeqNumber)
Contructs a AP-REQ message to send to the peer.
|
KrbApReq(Credentials tgsCred,boolean mutualRequired,boolean useSubKey,boolean useSeqNumber,Checksum cksum)
Contructs a AP-REQ message to send to the peer.
|
KrbApReq(com.ibm.security.util.DerValue value,EncryptionKey key)
Contructs a AP-REQ message from the bytes received from the peer.
|
Method Summary
Modifier and Type | Method and Description |
---|---|
getChecksum()
Returns the optional Checksum stored in the Authenticator for this
message.
|
|
getClient()
Returns the principal name of the client that generated this message.
|
|
getCreds()
Returns the credentials that are contained in the ticket that is part of
this this AP-REP.
|
|
getEncTicketPart()
|
|
|
getMessage()
Returns the ASN.1 encoding that should be sent to the peer.
|
|
getMutualAuthRequired()
Returns true if mutual authentication is required and hence an AP-REP
will need to be generated.
|
|
getSeqNumber()
Returns the optional sequence number stored in the Authenticator for
this message.
|
getSubKey()
Returns the optional subkey stored in the Authenticator for this
message.
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail
KrbApReq
- public KrbApReq(Credentials tgsCred,
- boolean mutualRequired,
- boolean useSubKey,
- boolean useSeqNumber)
- throws Asn1Exception
- KrbCryptoException
- KrbException
- java.io.IOException
Contructs a AP-REQ message to send to the peer.
Parameters:
tgsCred
- mutualRequired
- DOCUMENT ME! useSubKey
- DOCUMENT ME! useSeqNumber
- DOCUMENT ME! Throws:
//TBD
java.io.IOException
KrbApReq
- public KrbApReq(Credentials tgsCred,
- boolean mutualRequired,
- boolean useSubKey,
- boolean useSeqNumber,
- Checksum cksum)
- throws Asn1Exception
- KrbCryptoException
- KrbException
- java.io.IOException
Contructs a AP-REQ message to send to the peer.
Parameters:
tgsCred
- the Credentials
to be used to construct the
AP Request protocol message. mutualRequired
- Whether mutual authentication is required useSubKey
- 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. cksum
- checksum of the the application data that accompanies the
KRB_AP_REQ. Throws:
KrbException
- for any Kerberos protocol specific error java.io.IOException
- for any IO related errors (e.g. socket operations) KrbApReq
- public KrbApReq(byte[] message,
- EncryptionKey key)
- throws KrbException
- java.io.IOException
Contructs a AP-REQ message from the bytes received from the peer.
Parameters:
message
- The message received from the peer key
- EncrtyptionKey
to decrypt the message Throws:
KrbException
- for any Kerberos protocol specific error java.io.IOException
- for any IO related errors (e.g. socket operations) KrbApReq
- public KrbApReq(com.ibm.security.util.DerValue value,
- EncryptionKey key)
- throws KrbException
- java.io.IOException
Contructs a AP-REQ message from the bytes received from the peer.
Parameters:
value
- The DerValue
that contains the DER enoded
AP-REQ protocol message key
- EncrtyptionKey
to decrypt the message Throws:
KrbException
- for any Kerberos protocol specific error java.io.IOException
- for any IO related errors (e.g. socket operations) KrbApReq
- public KrbApReq(APOptions options,
- Credentials tgs_creds,
- Checksum cksum,
- EncryptionKey subKey,
- SeqNumber seqNumber,
- AuthorizationData authorizationData)
- throws KrbException
- java.io.IOException
KrbApReq
- public KrbApReq(APOptions apOptions,
- Ticket ticket,
- EncryptionKey key,
- Realm crealm,
- PrincipalName cname,
- Checksum cksum,
- KerberosTime ctime,
- EncryptionKey subKey,
- SeqNumber seqNumber,
- AuthorizationData authorizationData)
- throws Asn1Exception
- java.io.IOException
- KdcErrException
- KrbCryptoException
KrbApReq
- public KrbApReq(byte[] request,
- Credentials serviceCreds,
- HostAddress sender)
- throws KrbException
- java.io.IOException
Method Detail
getCreds
- public Credentials getCreds()
Returns the credentials that are contained in the ticket that is part of
this this AP-REP.
Returns:
DOCUMENT ME!
getMutualAuthRequired
- public boolean getMutualAuthRequired( )
- throws KrbException
- java.io.IOException
Returns true if mutual authentication is required and hence an AP-REP
will need to be generated.
getSubKey
- public EncryptionKey getSubKey( )
Returns the optional subkey stored in the Authenticator for this
message. Returns null if none is stored.
Returns:
DOCUMENT ME!
getSeqNumber
- public java.lang.Integer getSeqNumber( )
Returns the optional sequence number stored in the Authenticator for
this message. Returns null if none is stored.
Returns:
DOCUMENT ME!
getChecksum
- public Checksum getChecksum()
Returns the optional Checksum stored in the Authenticator for this
message. Returns null if none is stored.
Returns:
DOCUMENT ME!
getMessage
- public byte[] getMessage()
Returns the ASN.1 encoding that should be sent to the peer.
Returns:
DOCUMENT ME!
getClient
- public PrincipalName getClient( )
Returns the principal name of the client that generated this message.
Returns:
DOCUMENT ME!
getEncTicketPart
- public EncTicketPart getEncTicketPart( )