A B C D E F G H I J K L M N O P Q R S T U V W Z _

A

AbstractCODEC - Class in audio
Base class for CODECs that can convert to and from PCM.
AbstractCODEC() - Constructor for class audio.AbstractCODEC
 
acceptIncomingCall(boolean) - Method in class CryptoPhoneApp
Accepts incoming invite.
actionPerformed(ActionEvent) - Method in class CryptoPhoneApp
Handles events from Swing timer and buttons.
addIn(ProtocolDataUnit) - Method in class protocol.CallContext
Passed a newly arrived PDU.
addIncomingPDU(byte[]) - Method in class protocol.RemotePeer
Adds an incoming PDUs (as bytes) to the PDUs queue.
addNewCall(CallContext) - Method in class protocol.RemotePeer
Adds the new (not owned) call to the peer.
addNewPeer(RemotePeer) - Method in class protocol.DatagramChannel
Adds new peer to receive incoming PDUs
ALAW - Static variable in class protocol.VoicePDU
Voice PDU Subclass: G.711 a-Law
alaw2linear(byte) - Static method in class audio.AudioCodecAlaw
Converts an 8-bit A-law value to 16-bit linear PCM
algorithm - Static variable in class crypto.AsymmetricCipher
Asymmetric cipher algorithm
allocate(int) - Static method in class utils.OctetBuffer
Allocates buffer
appTitle - Static variable in class CryptoPhoneApp
The common application title prefix.
AsymmetricCipher - Class in crypto
Implements asymmetric cipher with public and private keys used to retrieve secret key (used for symmetric ciphering of peer-to-peer datagram packets) from remote peer.
AsymmetricCipher() - Constructor for class crypto.AsymmetricCipher
Generates a pair of keys and serializes public key as Base64 string.
attention(String) - Method in class CryptoPhoneApp
Displays attention messages to the user from Log subsystem.
attention(String) - Method in interface utils.Log.AttentionContext
 
attn - Static variable in enum utils.Log
Instance of the interface for attention messages
attn(String) - Static method in enum utils.Log
Logs a attention message.
audio - package audio
Audio properties, interfaces and CODECs
audio - Variable in class audio.AbstractCODEC
Instance of the audio interface that provides access to PCM (signed 16-bit linear) samples.
audio - Variable in class protocol.VoicePDUSender
 
audio(String) - Static method in enum utils.Log
Logs a audio message.
AudioBuffer - Class in audio
Encapsulates the concept of an audio buffer with a time-stamp.
AudioBuffer(int) - Constructor for class audio.AudioBuffer
Constructs buffer with given size.
audioBuffer - Variable in class protocol.VoicePDUSender
 
AudioCodecAlaw - Class in audio
Converts a 16-bit linear PCM stream from and to 8-bit A-law.
AudioCodecAlaw(AudioInterfacePCM) - Constructor for class audio.AudioCodecAlaw
Constructs A-Law CODEC above existing PCM audio interface
AudioCodecUlaw - Class in audio
Converts a 16-bit linear PCM stream from and to 8-bit u-law.
AudioCodecUlaw(AudioInterfacePCM) - Constructor for class audio.AudioCodecUlaw
Constructs A-Law CODEC above existing PCM audio interface
AudioInterface - Interface in audio
The abstract audio interface.
audioInterface - Variable in class CryptoPhoneApp
The instance of the Audio interface used to access microphone and speaker.
audioInterface - Variable in class protocol.CallContext
The audio interface used to play/record for our voice PDUs
AudioInterface.Packetizer - Interface in audio
Audio sender interface used by instance of the AudioInterface class to send captured audio samples to the remote peer.
AudioInterfacePCM - Class in audio
Implements the audio interface for 16-bit signed linear audio (PCM_SIGNED).
AudioInterfacePCM() - Constructor for class audio.AudioInterfacePCM
Constructor for the AudioInterfacePCM object
audioPlayerThread - Variable in class audio.AudioInterfacePCM
 
audioPlayerWorker() - Method in class audio.AudioInterfacePCM
Writes frames to audio output i.e. source data line
audioSender - Variable in class audio.AudioInterfacePCM
 
audioSenderThread - Variable in class audio.AudioInterfacePCM
 
audioWrite(byte[], long) - Method in class protocol.CallContext
Writes audio data to the speaker.
authorizedKeys - Static variable in class crypto.PublicEncryptor
Authorized public keys (loaded from file)
authorizedKeysFile - Static variable in class crypto.PublicEncryptor
The name of the file holding authorized public keys of remote peers
autoAnswer - Variable in class CryptoPhoneApp
 

B

b4 - Variable in class utils.Base64.OutputStream
 
Base64 - Class in utils
Encodes and decodes to and from Base64 notation.
Base64() - Constructor for class utils.Base64
Defeats instantiation.
Base64.InputStream - Class in utils
A Base64.InputStream will read data from another java.io.InputStream, given in the constructor, and encode/decode to/from Base64 notation on the fly.
Base64.InputStream(InputStream) - Constructor for class utils.Base64.InputStream
Constructs a Base64.InputStream in DECODE mode.
Base64.InputStream(InputStream, int) - Constructor for class utils.Base64.InputStream
Constructs a Base64.InputStream in either ENCODE or DECODE mode.
Base64.OutputStream - Class in utils
A Base64.OutputStream will write data to another java.io.OutputStream, given in the constructor, and encode/decode to/from Base64 notation on the fly.
Base64.OutputStream(OutputStream) - Constructor for class utils.Base64.OutputStream
Constructs a Base64.OutputStream in ENCODE mode.
Base64.OutputStream(OutputStream, int) - Constructor for class utils.Base64.OutputStream
Constructs a Base64.OutputStream in either ENCODE or DECODE mode.
BIAS - Static variable in class audio.AudioCodecUlaw
 
breakLines - Variable in class utils.Base64.InputStream
 
breakLines - Variable in class utils.Base64.OutputStream
 
buf - Variable in class audio.AudioBuffer
 
buffer - Variable in class utils.Base64.InputStream
 
buffer - Variable in class utils.Base64.OutputStream
 
bufferLength - Variable in class utils.Base64.InputStream
 
bufferLength - Variable in class utils.Base64.OutputStream
 

C

call - Variable in class protocol.ProtocolDataUnit
The call object
call - Variable in class protocol.RemotePeer
The call context
call - Variable in class protocol.VoicePDUSender
 
CallContext - Class in protocol
CallContext deals with all the packets that are part of a specific call.
CallContext(RemotePeer, AudioInterface) - Constructor for class protocol.CallContext
The outbound constructor for Call.
callEstablished - Variable in class protocol.CallContext
The flag that indicates that the call is established
callLength - Variable in class audio.AudioInterfacePCM
Measured call length in milliseconds
callStartTimestamp - Variable in class protocol.VoicePDUSender
 
cipher - Variable in class crypto.AsymmetricCipher
Instance of the decrypting engine based on our private key
cipher - Variable in class crypto.PublicEncryptor
Instance of the encrypting engine based on remote public key
cipher - Variable in class crypto.SymmetricCipher
Instance of the cipher used to encrypt/decrypt data.
CipherEngine - Class in crypto
Common ciphering engine (for the whole application) providing: - Asymmetric ciphering: used for signing/verification and encryption/decryption of secret key used in symmetric ciphering
CipherEngine() - Constructor for class crypto.CipherEngine
 
cipherText(ByteBuffer, ByteBuffer) - Static method in class utils.Base64
Performs Base64 encoding on the raw ByteBuffer, writing it to the encoded ByteBuffer.
cleanUp() - Method in class audio.AbstractCODEC
Cleans up resources used by the interface.
cleanUp() - Method in interface audio.AudioInterface
Cleans up resources used by the interface.
cleanUp() - Method in class audio.AudioInterfacePCM
Stops threads and cleans-up the instance.
cleanUp() - Method in class protocol.CallContext
Cleans up and detaches call from peer
cleanUp() - Method in class protocol.RemotePeer
Stops transmitting and c cleans up resources (local and used by the calls).
clearLogArea() - Method in class CryptoPhoneApp
Clears log area (with the contents of the "empty" template)
CLIP - Static variable in class audio.AudioCodecUlaw
 
close() - Method in class pbx.PBXClient
Closes the connection gracefully
close() - Method in class utils.Base64.OutputStream
Flushes and closes (I think, in the superclass) the stream.
comment - Variable in class crypto.NamedKeyPair
The description of the public key, e.g. owner, timestamp etc.
comment - Variable in class crypto.NamedPublicKey
The description of the public key, e.g. owner, timestamp etc.
concealMissingDataForAudioOutput(int) - Method in class audio.AudioInterfacePCM
Conceals missing data in the audio output buffer by averaging from samples taken from the the previous and next buffer.
context - Variable in class pbx.PBXClient
Event (call-back) context for this instance of the PBXClient
convertFromPCM(byte[], byte[]) - Method in class audio.AbstractCODEC
Encodes data to PCM, i.e. converts samples from PCM to CODEC format.
convertFromPCM(byte[], byte[]) - Method in class audio.AudioCodecAlaw
Decodes data from PCM, i.e. converts samples from CODEC to A-Law format.
convertFromPCM(byte[], byte[]) - Method in class audio.AudioCodecUlaw
Decodes data from PCM, i.e. converts samples from u-Law to PCM format.
convertToPCM(byte[], byte[]) - Method in class audio.AbstractCODEC
Decodes data from PCM, i.e. converts samples from CODEC to PCM format.
convertToPCM(byte[], byte[]) - Method in class audio.AudioCodecAlaw
Encodes data to PCM, i.e. converts samples from A-Law to CODEC format.
convertToPCM(byte[], byte[]) - Method in class audio.AudioCodecUlaw
Encodes data to PCM, i.e. converts samples from u-Law to CODEC format.
create(CallContext, byte[]) - Static method in class protocol.ProtocolDataUnit
Creates a new PDU of the correct type.
createEmptyAuthorizedPublicKeys(String) - Static method in class crypto.PublicEncryptor
Create empty authorized keys file if it does not exist and adjust permissions.
createEventListeners() - Method in class CryptoPhoneApp
Creates event listeners
createLayout() - Method in class CryptoPhoneApp
Creates layout of the GUI components
crypto - package crypto
Cryptographic functions
CryptoPhoneApp - Class in <Unnamed>
The Swing based GUI front-end of the Kryptofon application that implements simple VoIP phone and chat client with encrypted peer-to-peer communication.
CryptoPhoneApp(String[]) - Constructor for class CryptoPhoneApp
Creates a new instance of the CryptoPhoneApp.
currentInvite - Variable in class CryptoPhoneApp
The remote peer (its user id) that we are currently inviting to a call.

D

DatagramChannel - Class in protocol
Binds the UDP port.
DatagramChannel(int) - Constructor for class protocol.DatagramChannel
Constructor for the DatagramChannel object
debug(String) - Static method in enum utils.Log
Logs a debug message.
decodabet - Variable in class utils.Base64.InputStream
 
decodabet - Variable in class utils.Base64.OutputStream
 
DECODE - Static variable in class utils.Base64
Specify decoding in first bit.
decode(byte[]) - Static method in class utils.Base64
Low-level access to decoding ASCII characters in the form of a byte array.
decode(byte[], int, int, int) - Static method in class utils.Base64
Low-level access to decoding ASCII characters in the form of a byte array.
decode(String) - Static method in class utils.Base64
Decodes data from Base64 notation, automatically detecting gzip-compressed data and decompressing it.
decode(String, int) - Static method in class utils.Base64
Decodes data from Base64 notation, automatically detecting gzip-compressed data and decompressing it.
decode4to3(byte[], int, byte[], int, int) - Static method in class utils.Base64
Decodes four bytes from array source and writes the resulting bytes (up to three of them) to destination.
decodeFileToFile(String, String) - Static method in class utils.Base64
Reads infile and decodes it to outfile.
decodeFromFile(String) - Static method in class utils.Base64
Convenience method for reading a base64-encoded file and decoding it.
decodeToFile(String, String) - Static method in class utils.Base64
Convenience method for decoding data to a file.
decodeToObject(String) - Static method in class utils.Base64
Attempts to decode Base64 data and deserialize a Java Object within.
decodeToObject(String, int, ClassLoader) - Static method in class utils.Base64
Attempts to decode Base64 data and deserialize a Java Object within.
decrypt(byte[]) - Method in class crypto.AsymmetricCipher
Decrypts cipher text using the private key.
decrypt(int, byte[]) - Method in class crypto.SymmetricCipher
Decrypts cipher text first then discards random preamble of the given length.
decrypt(String) - Method in class crypto.SymmetricCipher
Decodes Base64 encoded cipher text, decrypts text message and discards random preamble.
defaultInputMsg - Static variable in class CryptoPhoneApp
The initial message content of the input text message field.
defaultLogAreaDumpFilename - Static variable in class CryptoPhoneApp
The default file name where to dump log area contents with :dump command
defaultPrivateKeyDirectory - Static variable in class crypto.CipherEngine
Subdirectory of the user.home where private key is stored
deferredOnAccept(PBXClient.ControlMessage) - Method in class CryptoPhoneApp
On ACCEPT call-back is triggered when PBXClient receives accepting message (indicating that the peer has accepted our invite).
deferredOnBye(PBXClient.ControlMessage) - Method in class CryptoPhoneApp
On BYE call-back is triggered when PBXClient receives 'bye' message (indicating that the peer is clearing i.e. hanging-up the call).
deferredOnInstantMessage(PBXClient.ControlMessage) - Method in class CryptoPhoneApp
On IMSG call-back is triggered when PBXClient receives private instant message (encrypted with session's secret key).
deferredOnInvite(PBXClient.ControlMessage) - Method in class CryptoPhoneApp
On INVITE call-back is triggered when PBXClient receives inviting message (indicating that someone is calling us).
deferredOnRing(PBXClient.ControlMessage) - Method in class CryptoPhoneApp
On RING call-back is triggered when PBXClient receives ringing message (indicating that the peer is alerting end-user).
deltaTimePlayerMinusMic - Variable in class audio.AudioInterfacePCM
 
desc - Variable in enum utils.Log
Log channel description
deserializeEncryptedSecretKey(String) - Method in class crypto.AsymmetricCipher
Reconstructs secret key from Base64 respresentation of encrypted (using our public key) serialized secret key.
deserializeEncryptedSecretKey(String) - Static method in class crypto.CipherEngine
Reconstructs secret key from Base64 respresentation of encrypted (using our public key) serialized secret key and verifies signature of the remote peer.
destinationCallNumber - Variable in class protocol.CallContext
Represents the Destination Call Number in the PDU header
destinationCallNumber - Variable in class protocol.ProtocolDataUnit
The destination call number
destruct() - Method in class crypto.AsymmetricCipher
Destructs object (makes it inactive)
dialButton - Variable in class CryptoPhoneApp
 
dialButton_Clicked() - Method in class CryptoPhoneApp
Performs :invite command.
digest - Static variable in class crypto.AsymmetricCipher
Message digest used for creating/validating signatures
digest - Static variable in class crypto.PublicEncryptor
Message digest used for creating/validating signatures
displayHelp() - Method in class CryptoPhoneApp
Displays help
displayUsage() - Method in class CryptoPhoneApp
Displays usage information
DO_BREAK_LINES - Static variable in class utils.Base64
Do break lines when encoding.
DONT_GUNZIP - Static variable in class utils.Base64
Specify that gzipped data should not be automatically gunzipped.
dump(String) - Method in class protocol.ProtocolDataUnit
Logs this frame.
dumpLogArea(String) - Method in class CryptoPhoneApp
Dumps log area into html file

E

ENCODE - Static variable in class utils.Base64
Specify encoding in first bit.
encode(ByteBuffer, CharBuffer) - Static method in class utils.Base64
Performs Base64 encoding on the raw ByteBuffer, writing it to the encoded CharBuffer.
encode - Variable in class utils.Base64.InputStream
 
encode - Variable in class utils.Base64.OutputStream
 
encode3to4(byte[], byte[], int, int) - Static method in class utils.Base64
Encodes up to the first three bytes of array threeBytes and returns a four-byte array in Base64 notation.
encode3to4(byte[], int, int, byte[], int, int) - Static method in class utils.Base64
Encodes up to three bytes of the array source and writes the resulting four Base64 bytes to destination.
encodeBytes(byte[]) - Static method in class utils.Base64
Encodes a byte array into Base64 notation.
encodeBytes(byte[], int) - Static method in class utils.Base64
Encodes a byte array into Base64 notation.
encodeBytes(byte[], int, int) - Static method in class utils.Base64
Encodes a byte array into Base64 notation.
encodeBytes(byte[], int, int, int) - Static method in class utils.Base64
Encodes a byte array into Base64 notation.
encodeBytesToBytes(byte[]) - Static method in class utils.Base64
Similar to Base64.encodeBytes(byte[]) but returns a byte array instead of instantiating a String.
encodeBytesToBytes(byte[], int, int, int) - Static method in class utils.Base64
Similar to Base64.encodeBytes(byte[], int, int, int) but returns a byte array instead of instantiating a String.
encodeFileToFile(String, String) - Static method in class utils.Base64
Reads infile and encodes it to outfile.
encodeFromFile(String) - Static method in class utils.Base64
Convenience method for reading a binary file and base64-encoding it.
encodeObject(Serializable) - Static method in class utils.Base64
Serializes an object and returns the Base64-encoded version of that serialized object.
encodeObject(Serializable, int) - Static method in class utils.Base64
Serializes an object and returns the Base64-encoded version of that serialized object.
encodeToFile(byte[], String) - Static method in class utils.Base64
Convenience method for encoding data to a file.
encrypt(byte[]) - Method in class crypto.PublicEncryptor
Encrypts plain text using public key.
encrypt(int, byte[]) - Method in class crypto.SymmetricCipher
Encrypts random preamble of the given length appended with the input plain text.
encrypt(String) - Method in class crypto.SymmetricCipher
Encrypts text message with random preamble and returns Base64 encoded cipher text.
encryptAndSerialize(Serializable) - Method in class crypto.PublicEncryptor
Returns Base64 of encrypted (using our public key) object.
EQUALS_SIGN - Static variable in class utils.Base64
The equals sign (=) as a byte.
EQUALS_SIGN_ENC - Static variable in class utils.Base64
 
err - Static variable in enum utils.Log
Print stream for error messages
error(String) - Static method in enum utils.Log
Logs a warning message.
EscapeHTML(String) - Static method in enum utils.Log
Escapes HTML reserved characters (as we are logging HTML tagged messages) It also replaces form-feed characters with HTML line-breaks.
exception(Log, Exception) - Static method in enum utils.Log
Returns current callee's name of the method, file, location and description of the exception.
executeCommand(String, String[]) - Method in class CryptoPhoneApp
Parses commands prefixed with ':' character.
exp_lut1 - Static variable in class audio.AudioCodecUlaw
 
exportPublicKey(String) - Method in class crypto.AsymmetricCipher
Save public key into file

F

findDataLineByPref(String, AudioFormat, String, int, Class<?>, String) - Method in class audio.AudioInterfacePCM
Searches for data line of either sort (source/targe) based on the pref string.
findSourceDataLineByPref(String, AudioFormat, String, int) - Method in class audio.AudioInterfacePCM
Searches for source data line according to preferences.
fintTargetDataLineByPref(String, AudioFormat, String, int) - Method in class audio.AudioInterfacePCM
Searches for target data line according to preferences.
flushBase64() - Method in class utils.Base64.OutputStream
Method added by PHIL.
focusGained(FocusEvent) - Method in class ui.JImageButton
On focus gained, sets icon to 'in focus' icon
focusLost(FocusEvent) - Method in class ui.JImageButton
On focus lost, resets icon to normal
formWindowClosing(WindowEvent) - Method in class CryptoPhoneApp
Closes application by gracefully terminating all threads.
FRAME_COUNT - Static variable in class audio.AudioInterfacePCM
Audio buffering depth in number of frames
FRAME_INTERVAL - Static variable in class audio.AudioInterfacePCM
Frame interval in milliseconds

G

generateKeyPair() - Method in class crypto.AsymmetricCipher
Generates a key pair
generateNewSecret(String, int, boolean) - Static method in class crypto.CipherEngine
Generates new symmetric secret key.
get() - Method in class utils.OctetBuffer
Gets primitive 'byte' from the slice offset in the store
get(byte[]) - Method in class utils.OctetBuffer
Gets byte[] array from the slice offset in the store
getAlgorithmDesc() - Method in class crypto.SymmetricCipher
Returns description of the cipher algorithm
getAlphabet(int) - Static method in class utils.Base64
Returns one of the _SOMETHING_ALPHABET byte arrays depending on the options specified.
getAudioIn() - Method in class audio.AudioInterfacePCM
Returns audio input (target data line)
getAudioOut() - Method in class audio.AudioInterfacePCM
Get audio output.
getAudioSampleSize() - Method in class protocol.CallContext
Returns the audio interface sample size (used to determine size of the VoicePDU).
getByFormat(Integer) - Method in class audio.AbstractCODEC
Creates new instance of the interface by choosing specified CODEC format
getByFormat(Integer) - Method in interface audio.AudioInterface
Creates new instance of the interface by choosing specified CODEC format
getByFormat(Integer) - Method in class audio.AudioInterfacePCM
Gets audio interface by VoicePDU format
getByteArray() - Method in class audio.AudioBuffer
Gets buffer contents.
getChar() - Method in class utils.OctetBuffer
Gets primitive 'char' from the slice offset in the store
getChar(int) - Method in class utils.OctetBuffer
Gets primitive 'char' from the slice offset in the store
getCipher() - Static method in class crypto.CipherEngine
Returns local symmetric ciphering engine
getContentsFromResourceOrFile(String) - Method in class CryptoPhoneApp
Reads contents of the text file using URL class.
getDecodabet(int) - Static method in class utils.Base64
Returns one of the _SOMETHING_DECODABET byte arrays depending on the options specified.
getDestinationCallNumber() - Method in class protocol.CallContext
Returns the remote call number.
getFreeSpace() - Method in class utils.OctetBuffer
Returns remaining space
getInSeqNo() - Method in class protocol.CallContext
Returns the inbound stream sequence number.
getInt() - Method in class utils.OctetBuffer
Gets primitive 'int' from the slice offset in the store
getLocalAddress() - Method in class pbx.PBXClient
Returns local IP address.
getLocalPort() - Method in class protocol.DatagramChannel
Returns used local UDP port.
getNamedPublicKey() - Method in class crypto.AsymmetricCipher
Returns serializable named publicKey (with comment) encoded as Base64
getNamedPublicKey() - Static method in class crypto.CipherEngine
Returns serialized named public key encoded as Base64 string.
getOutSeqNo() - Method in class protocol.CallContext
Returns the outbound stream sequence number, oSeqno.
getOutSeqNoInc() - Method in class protocol.CallContext
Generates a new outbound stream sequence number.
getPosition() - Method in class utils.OctetBuffer
Gets current position
getPrivateKeyDirectory() - Static method in class crypto.CipherEngine
Returns path to the directory holding our private key
getRemotePeer() - Method in class protocol.DatagramChannel
Returns the remote peer
getRemoteUserId() - Method in class protocol.RemotePeer
Returns remote name (remote userid) of the peer
getSampleSize() - Method in class audio.AudioCodecAlaw
Returns the minimum sample size for use in creating buffers etc.
getSampleSize() - Method in class audio.AudioCodecUlaw
Returns the minimum sample size for use in creating buffers etc.
getSampleSize() - Method in interface audio.AudioInterface
Returns the minimum sample size for use in creating buffers etc.
getSampleSize() - Method in class audio.AudioInterfacePCM
Returns preferred the minimum sample size for use in creating buffers etc.
getSecretKey() - Method in class crypto.SymmetricCipher
Returns secret key.
getSerializedAndSignedPublicKey() - Method in class crypto.AsymmetricCipher
Returns serialized public key used for encryption of datagrams as Base64 string.
getShort() - Method in class utils.OctetBuffer
Gets primitive 'short' from the slice offset in the store
getShort(int) - Method in class utils.OctetBuffer
Gets primitive 'short' from the offset in the store
getSignedPublicKey() - Static method in class crypto.CipherEngine
Returns serialized signed public key (used for encryption of datagrams) as Base64 string.
getSignedSecretKey() - Static method in class crypto.CipherEngine
Returns secret key signed with our private key
getSourceCallNumber() - Method in class protocol.CallContext
Returns the local call number.
getStartTimestamp() - Method in class protocol.CallContext
Returns the start time-stamp of the call.
getState() - Method in class ui.JSecState
Gets current security state
getStore() - Method in class utils.OctetBuffer
Returns internal byte[] store
getStoreSize() - Method in class utils.OctetBuffer
Returns internal byte[] store
getTimestamp() - Method in class audio.AudioBuffer
Returns the time-stamp associated with the buffer
getTimestamp() - Method in class protocol.CallContext
Returns the timestamp of this call.
getTimestamp() - Method in class protocol.ProtocolDataUnit
Returns the timestamp as long.
getUsedSymmetricCipher() - Method in class protocol.DatagramChannel
Gets current cipher used for PDU ciphering
getUserId() - Method in class CryptoPhoneApp
Returns configured user ID (username).
getUserId() - Method in interface pbx.PBXClient.Context
Returns configured user ID.
getVerboseRemote() - Method in class pbx.PBXClient.ControlMessage
 
getVerificatorName() - Method in class crypto.PublicEncryptor
Returns if name of the verificator from authorized keys that verified this public key
getVerificatorName() - Method in class crypto.SymmetricCipher
Returns if name of the verificator from authorized keys that verified this public key
getVoicePduSubclass() - Method in class audio.AbstractCODEC
Gets the VoicePDU subclass attribute of the AbstractAudio object
getVoicePduSubclass() - Method in class audio.AudioCodecAlaw
Gets the VoicePDU subclass attribute of the AbstractAudio object
getVoicePduSubclass() - Method in class audio.AudioCodecUlaw
Gets the VoicePDU subclass attribute of the AbstractAudio object
getVoicePduSubclass() - Method in interface audio.AudioInterface
Gets the VoicePDU subclass attribute of the AbstractAudio object
getVoicePduSubclass() - Method in class audio.AudioInterfacePCM
Returns our VoicePDU format
GZIP - Static variable in class utils.Base64
Specify that data should be gzip-compressed in second bit.

H

hangupButton - Variable in class CryptoPhoneApp
 
hangupButton_Clicked() - Method in class CryptoPhoneApp
Performs :bye command.
hasFreeSpace() - Method in class utils.OctetBuffer
Returns true if there is free space in the store
hasRemotePeer() - Method in class protocol.DatagramChannel
Returns if there is active remote peer
host - Variable in class pbx.PBXClient
Host name or IP address of the remote chat server

I

iconUnsecured - Variable in class ui.JSecState
 
iconUnverified - Variable in class ui.JSecState
 
iconVerified - Variable in class ui.JSecState
 
idLabel - Variable in class CryptoPhoneApp
 
imsgLabel - Variable in class CryptoPhoneApp
 
INBOUND_UDP_BUFFER_SIZE - Static variable in class protocol.DatagramChannel
The default size for the inbound UDP buffer
inboundPDUs - Variable in class protocol.RemotePeer
The queue of incoming PDUs from remote peer via our UDP channel
INFO - Static variable in class pbx.PBXClient
HTML CSS class for info messages
info(String) - Static method in enum utils.Log
Logs a informational message.
inFocusIcon - Variable in class ui.JImageButton
 
initialize() - Static method in class crypto.CipherEngine
Loads authorized public keys and initializes asymmetric and symmetric ciphering engines, where: - Asymmetric ciphering is used for verification and encryption/decryption of secret key used in symmetric ciphering
initializeRingerSamples() - Method in class audio.AudioInterfacePCM
Initializes ringer samples (ring singnal and silecce) samples
inputMsg - Variable in class CryptoPhoneApp
 
inputPcmBuf - Variable in class audio.AbstractCODEC
Input PCM buffer (converted to CODEC) read from audio interface
inSeqNo - Variable in class protocol.CallContext
The inbound stream sequence number
inSeqNo - Variable in class protocol.ProtocolDataUnit
The inbound stream sequence number
instantiateCipher() - Method in class crypto.AsymmetricCipher
Instantiates a cipher
inviteTimeout - Variable in class CryptoPhoneApp
Timer used to detect unresolved invite (i.e. invite to non-existing peer).
isActive() - Method in class crypto.AsymmetricCipher
Returns if cipher is properly initialized
isActive() - Method in class crypto.PublicEncryptor
Returns if cipher is properly initialized
isActive() - Method in class crypto.SymmetricCipher
Returns if cipher is properly initialized
isEnabled(Log) - Static method in enum utils.Log
Returns if log channel is enabled
isEstablished() - Method in class protocol.CallContext
Returns if this call has been callAnswered.
isPearDead(int) - Method in class protocol.DatagramChannel
Returns if peer seems to be dead (we are not receiving PDUs from it).
isVerified() - Method in class crypto.PublicEncryptor
Returns if public key was verified
isVerified() - Method in class crypto.SymmetricCipher
Returns if public key was verified
isWritten() - Method in class audio.AudioBuffer
Returns status of the flag 'written'

J

JImageButton - Class in ui
JButton with transparent images and no borders.
JImageButton(Object, String, String, String) - Constructor for class ui.JImageButton
Creates button with the tool tip and two icons (one normal and one rollover)
jitBufFirst - Variable in class audio.AudioInterfacePCM
 
jitBufFudge - Variable in class audio.AudioInterfacePCM
 
jitBufGet - Variable in class audio.AudioInterfacePCM
 
jitBufPut - Variable in class audio.AudioInterfacePCM
 
JSecState - Class in ui
Image indicating security state (unsecured/secured-unverified/secured-trusted).
JSecState(Object) - Constructor for class ui.JSecState
Constructs object in UNSECURED state by default
JSecState.State - Enum in ui
Possible security states
JSecState.State() - Constructor for enum ui.JSecState.State
 

K

keyPairComment - Variable in class crypto.AsymmetricCipher
The comment (description) of the key pair
keyPressed(KeyEvent) - Method in class CryptoPhoneApp
Implements KeyListener's key pressed event.
keyReleased(KeyEvent) - Method in class CryptoPhoneApp
Implements KeyListener's key released event.
keySize - Static variable in class crypto.AsymmetricCipher
Default key size for algorithm
keyTyped(KeyEvent) - Method in class CryptoPhoneApp
Implements KeyListener's key typed event.

L

lastMessageFromPBX - Variable in class CryptoPhoneApp
The last PBX control message sent to us (waiting to be handled)
lastMicTimestamp - Variable in class audio.AudioInterfacePCM
 
lastReceiverTimestamp - Variable in class protocol.RemotePeer
The time-stamp of the last received PDU
LIN16 - Static variable in class protocol.VoicePDU
Voice PDU Subclass: 16-bit linear little-endian
linear2alaw(short) - Static method in class audio.AudioCodecAlaw
Converts a 16-bit linear PCM value to 8-bit A-law
linear2ulaw(int) - Static method in class audio.AudioCodecUlaw
Converts a linear signed 16bit sample to a uLaw byte.
lineLength - Variable in class utils.Base64.InputStream
 
lineLength - Variable in class utils.Base64.OutputStream
 
listPeersButton - Variable in class CryptoPhoneApp
 
listPeersButton_Clicked() - Method in class CryptoPhoneApp
Performs :list command.
LLBS - Static variable in class audio.AudioInterfacePCM
Low-level water mark used for de-jittering
loadAuthorizedPublicKeys() - Static method in class crypto.PublicEncryptor
Loads authorized keys
loadIcon(Object, String) - Static method in class ui.JImageButton
Loads icon from resources or file system
loadObject(String) - Static method in class crypto.AsymmetricCipher
Loads serializable object encoded in Base64 from file
loadSavedKeyPair() - Method in class crypto.AsymmetricCipher
Load saved key pair
localPort - Variable in class protocol.DatagramChannel
The local UDP port where datagram socket is bound
localUdpPort - Variable in class CryptoPhoneApp
The default local UDP port.
localUserId - Variable in class pbx.PBXClient.ControlMessage
 
log(String) - Method in class protocol.ProtocolDataUnit
Logs the time-stamp and the inbound/outbound stream sequence number.
log(String) - Method in class protocol.VoicePDU
Logs this frame.
Log - Enum in utils
Common application message logger facility (static implementation)
Log(int, String) - Constructor for enum utils.Log
Private constructor that forbids instantiation by the user
Log.AttentionContext - Interface in utils
 
logArea - Variable in class CryptoPhoneApp
The log area formatted in HTML
logMessage(String) - Method in class CryptoPhoneApp
Logs message formated with limited HTML (limited because of JEditorPane)

M

main(String[]) - Static method in class CryptoPhoneApp
Main entry point.
mainTimer - Variable in class CryptoPhoneApp
Main timer (elapses every 1000 ms)
mainTimerEvent() - Method in class CryptoPhoneApp
Handles events from application's mainTimer (an instance of the Swing timer).
mask - Variable in enum utils.Log
Log channel bitmap
MAX_LINE_LENGTH - Static variable in class utils.Base64
Maximum line length (76) of Base64 output.
micBufGet - Variable in class audio.AudioInterfacePCM
 
micBufPut - Variable in class audio.AudioInterfacePCM
 
micDataRead() - Method in class audio.AudioInterfacePCM
Called from micRecorder to record audio samples from microphone.
micRecorderThread - Variable in class audio.AudioInterfacePCM
 
micRecorderWorker() - Method in class audio.AudioInterfacePCM
Records audio samples from the microphone
mode - Static variable in class crypto.SymmetricCipher
Cipher-Block Chaining mode.
monitorIfPeerIsSendingVoice - Variable in class CryptoPhoneApp
Indicates whether to monitor if peer is sending voice PDUs to us.
mono44k - Variable in class audio.AudioInterfacePCM
 
mono8k - Variable in class audio.AudioInterfacePCM
 
msgType - Variable in class pbx.PBXClient.ControlMessage
 
myCipherAlgorithm - Static variable in class crypto.CipherEngine
The default cipher algorithm for data (PDUs and secret chat messages)
myCipherKeySize - Static variable in class crypto.CipherEngine
The default key size for cipher algorithm
myID - Variable in class pbx.PBXClient
Chat client ID when presented to user (== host + ":" + port)
myPduCipher - Static variable in class crypto.CipherEngine
Symmetric cipher used to encrypt data (PDUs and secret chat messages)
myPrivateKeyPath - Static variable in class crypto.CipherEngine
Full path of the directory holding our private key

N

NamedKeyPair - Class in crypto
Encapsulates a public/private key pair together with some comment (textual description) that describes them like type, owner, time-stamp etc.
NamedKeyPair(PublicKey, PrivateKey, String) - Constructor for class crypto.NamedKeyPair
Constructs object
NamedPublicKey - Class in crypto
Encapsulates a public key together with some comment (textual description) that describes it (like type, owner, time-stamp etc.)
NamedPublicKey(PublicKey, String) - Constructor for class crypto.NamedPublicKey
Constructs object
NEW_LINE - Static variable in class utils.Base64
The new line character (\n) as a byte.
nextDueTimestamp - Variable in class protocol.VoicePDUSender
 
NO_OPTIONS - Static variable in class utils.Base64
No options specified.
normalIcon - Variable in class ui.JImageButton
 
now() - Static method in enum utils.Log
Gets current time stamp -- date and time in ISO format
nowDate() - Static method in enum utils.Log
Gets current time stamp -- date only
nowMillis() - Static method in enum utils.Log
Gets current time stamp -- time with milliseconds
nowTime() - Static method in enum utils.Log
Gets current time stamp -- time only
numSigBytes - Variable in class utils.Base64.InputStream
 

O

OctetBuffer - Class in utils
Encapsulates binary payload that can be manipulated on the octet (byte) level.
OctetBuffer() - Constructor for class utils.OctetBuffer
 
onAccept(PBXClient.ControlMessage) - Method in class CryptoPhoneApp
Handles on ACCEPT call-back from the PBXClient.
onAccept(PBXClient.ControlMessage) - Method in interface pbx.PBXClient.Context
Informs upper layer of incoming ACCEPT.
onArrivedPDU() - Method in class protocol.ProtocolDataUnit
Arrived is called when a packet arrives.
onArrivedPDU() - Method in class protocol.VoicePDU
Handles arrived PDUs: writes those to audio buffer.
onBye(PBXClient.ControlMessage) - Method in class CryptoPhoneApp
Handles on BYE call-back from the PBXClient.
onBye(PBXClient.ControlMessage) - Method in interface pbx.PBXClient.Context
Informs upper layer of incoming BYE.
onInstantMessage(PBXClient.ControlMessage) - Method in class CryptoPhoneApp
Handles on IMSG call-back from the PBXClient.
onInstantMessage(PBXClient.ControlMessage) - Method in interface pbx.PBXClient.Context
Informs upper layer of incoming IMSG.
onInvite(PBXClient.ControlMessage) - Method in class CryptoPhoneApp
Handles on INVITE call-back from the PBXClient.
onInvite(PBXClient.ControlMessage) - Method in interface pbx.PBXClient.Context
Informs upper layer of incoming INVITE.
onReceivedVoicePDU(long, byte[]) - Method in class protocol.CallContext
Notifies us that a Voice PDU has been received.
onRing(PBXClient.ControlMessage) - Method in class CryptoPhoneApp
Handles on RING call-back from the PBXClient.
onRing(PBXClient.ControlMessage) - Method in interface pbx.PBXClient.Context
Informs upper layer of incoming RING.
options - Variable in class utils.Base64.InputStream
 
options - Variable in class utils.Base64.OutputStream
 
ORDERED - Static variable in class utils.Base64
Encode using the special "ordered" dialect of Base64 described here: http://www.faqs.org/qa/rfcc-1940.html.
out - Variable in class pbx.PBXClient
Output stream to remote server
out - Static variable in enum utils.Log
Print stream for standard messages
outputPcmBuf - Variable in class audio.AbstractCODEC
Output PCM buffer (converted from CODEC) written to audio interface
outSeqNo - Variable in class protocol.CallContext
The outbound stream sequence number
outSeqNo - Variable in class protocol.ProtocolDataUnit
The outbound stream sequence number

P

packetDump(byte[], int, InetAddress, int, boolean) - Method in class protocol.DatagramChannel
Dumps information of a frame (in bytes) to standard error.
padding - Static variable in class crypto.AsymmetricCipher
Padding to be used when ciphering/deciphering.
padding - Static variable in class crypto.PublicEncryptor
Padding to be used when ciphering/deciphering JCE does not support RSA/CBC so the CBC mode is built on the top of ECB in PublicEncryptor.encrypt().
padding - Static variable in class crypto.SymmetricCipher
PKCS5 padding.
parseControlMessage(String, String[], String) - Method in class pbx.PBXClient
Parses control messages.
parseInputMessage() - Method in class CryptoPhoneApp
Parses input message from inputMsg and sends it to chat server.
parseInputMessage(String) - Method in class pbx.PBXClient
Parses input message.
parsePDU(byte[]) - Method in class protocol.RemotePeer
Deals with newly received PDU octets.
payload - Variable in class protocol.ProtocolDataUnit
The payload data
pbx - package pbx
Functionality of the private branch exchange (PBX)
pbxChannel - Variable in class CryptoPhoneApp
The instance of PBX client connected to remote chat server.
pbxChannelStatus - Variable in class CryptoPhoneApp
The last status message of the PBX channel (posted by the setPbxStatus()).
PBXClient - Class in pbx
Encapsulates rudimentary functionality of a PBX to list and invite users (peers) to secure calls.
PBXClient(String, int, PBXClient.Context) - Constructor for class pbx.PBXClient
Creates new instance of PBXClient that posts messages to specified Context.
PBXClient.CMType - Enum in pbx
PBX Signaling Messages' Types
PBXClient.CMType() - Constructor for enum pbx.PBXClient.CMType
 
PBXClient.Context - Interface in pbx
Provides a call-back context for the instance of PBXClient.
PBXClient.ControlMessage - Class in pbx
PBX signaling message sent via call-back to the upper layer
PBXClient.ControlMessage(PBXClient.CMType, String, String, String, int, String) - Constructor for class pbx.PBXClient.ControlMessage
 
pdu(String) - Static method in enum utils.Log
Logs a protocol data unit
pduReceiverThread - Variable in class protocol.DatagramChannel
The UDP receiver worker thread
pduReceiverThread - Variable in class protocol.RemotePeer
The receiving process thread.
pduSenderWorker() - Method in class audio.AudioInterfacePCM
Sends audio frames to UDP channel at regular intervals (ticks)
pduSubclass - Variable in class protocol.ProtocolDataUnit
The subclass
pduType - Variable in class protocol.ProtocolDataUnit
The frame type
peerAddr - Variable in class pbx.PBXClient.ControlMessage
 
peerPort - Variable in class pbx.PBXClient.ControlMessage
 
peerUserId - Variable in class pbx.PBXClient.ControlMessage
 
playBuffer - Variable in class audio.AudioInterfacePCM
 
playerIsEnabled - Variable in class audio.AudioInterfacePCM
 
port - Variable in class pbx.PBXClient
TCP port where to connect to on remote chat server
position - Variable in class utils.Base64.InputStream
 
position - Variable in class utils.Base64.OutputStream
 
position - Variable in class utils.OctetBuffer
Position index
PREFERRED_ENCODING - Static variable in class utils.Base64
Preferred encoding.
println(Log, String) - Static method in enum utils.Log
Logs message with prefix and time-stamp
privateCipher - Static variable in class crypto.CipherEngine
Asymmetric cipher used to encrypt secret keys
privateKey - Variable in class crypto.AsymmetricCipher
Private key used for deciphering and signing messages
privateKey - Variable in class crypto.NamedKeyPair
The private key
privateKeyFile - Static variable in class crypto.AsymmetricCipher
The name of the file holding saved private key
propertyBigBuff - Variable in class audio.AudioInterfacePCM
Big buffers
propertyInputDeviceName - Variable in class audio.AudioInterfacePCM
Input device name
propertyOutputDeviceName - Variable in class audio.AudioInterfacePCM
Output device name
propertyStereoRec - Variable in class audio.AudioInterfacePCM
Stereo recording
protocol - package protocol
Implementation of the Peer-to-Peer protocol over datagram channel
ProtocolDataUnit - Class in protocol
Represents a Protocol Data Unit (PDU).
ProtocolDataUnit(CallContext) - Constructor for class protocol.ProtocolDataUnit
The constructor for outbound PDUs.
ProtocolDataUnit(CallContext, byte[]) - Constructor for class protocol.ProtocolDataUnit
The constructor for inbound PDUs.
providingRingBack - Variable in class audio.AudioInterfacePCM
 
PublicEncryptor - Class in crypto
Implements public part of the asymmetric cipher (with public key) used to send encrypted local secret key (used for symmetric ciphering of peer-to-peer datagram packets) to remote peer.
PublicEncryptor(String, String) - Constructor for class crypto.PublicEncryptor
Deserializes public key from the Base64 string and instantiates PublicEncryptor.
publicKey - Variable in class crypto.AsymmetricCipher
Public key corresponding to our private key
publicKey - Variable in class crypto.NamedKeyPair
The public key
publicKey - Variable in class crypto.NamedPublicKey
Encapsulated public key
publicKey - Variable in class crypto.PublicEncryptor
Public key
publicKeyFile - Static variable in class crypto.AsymmetricCipher
The name of the file holding saved public key
put(byte) - Method in class utils.OctetBuffer
Puts primitive 'byte' from the slice offset in the store
put(byte[]) - Method in class utils.OctetBuffer
Puts byte[] array at the slice offset in the store
putChar(char) - Method in class utils.OctetBuffer
Puts primitive 'char' at the slice offset in the store
putChar(int, char) - Method in class utils.OctetBuffer
Puts primitive 'char' at the slice offset in the store
putInt(int) - Method in class utils.OctetBuffer
Puts primitive 'int' at the slice offset in the store
putShort(short) - Method in class utils.OctetBuffer
Puts primitive 'short' at the slice offset in the store
putShort(int, short) - Method in class utils.OctetBuffer
Puts primitive 'short' at the slice offset in the store

Q

QUANT_MASK - Static variable in class audio.AudioCodecAlaw
 

R

read() - Method in class utils.Base64.InputStream
Reads enough of the input stream to convert to/from Base64 and returns the next byte.
read(byte[], int, int) - Method in class utils.Base64.InputStream
Calls Base64.InputStream.read() repeatedly until the end of stream is reached or len bytes are read.
readWithTimestamp(byte[]) - Method in class audio.AbstractCODEC
Reads from the microphone, using the buffer provided, but only filling getSampSize() bytes.
readWithTimestamp(byte[]) - Method in interface audio.AudioInterface
Reads from the microphone, using the buffer provided, but only filling getSampSize() bytes.
readWithTimestamp(byte[]) - Method in class audio.AudioInterfacePCM
Read from the Microphone, into the buffer provided, but only filling getSampSize() bytes.
receivedFirstVoicePDU - Variable in class protocol.CallContext
Used by onReceivedVoicePDU() to stop ringing
receiverIdleTime() - Method in class protocol.RemotePeer
Returns elapsed time since last received packet
reconnectRetryCount - Variable in class CryptoPhoneApp
Retry counter of number of failed reconnecting attempts.
reconnectTimeout - Variable in class CryptoPhoneApp
The reconnect delay timer (for timing delay between two reconnections).
recordBuffer - Variable in class audio.AudioInterfacePCM
 
reloadAuthorizedPublicKeys() - Static method in class crypto.CipherEngine
Reloads only authorized public keys
remoteAddr - Variable in class protocol.RemotePeer
Remote IP address where to send PDUs
remotePeer - Variable in class protocol.CallContext
The remote peer; owner of the call
remotePeer - Variable in class protocol.DatagramChannel
Current remote peer receiving datagrams from UDP socket
RemotePeer - Class in protocol
Encapsulates the link between the UDP channel and a CallContext.
RemotePeer(DatagramChannel, String, InetAddress, int) - Constructor for class protocol.RemotePeer
Constructor for the RemotePeer object
remotePort - Variable in class protocol.RemotePeer
Remote UDP port where to send PDUs
remotePublicKey - Variable in class CryptoPhoneApp
The last public key received from remote peer
remoteUserId - Variable in class protocol.RemotePeer
PBXClient's (chat server's) User ID of the remote peer
removePeer() - Method in class protocol.DatagramChannel
Detaches peer and all its call from the UDP receiver
report(String, String) - Method in class CryptoPhoneApp
Reports a system message to log
report(String, String) - Method in interface pbx.PBXClient.Context
Reports a system message to log
report(String, String) - Method in class pbx.PBXClient
Reports a system message to log
reportIncomingTextMessage(String, String, String) - Method in class CryptoPhoneApp
Reports incoming message
reportIncomingTextMessage(String, String, String) - Method in interface pbx.PBXClient.Context
Reports incoming textual message
reportIncomingTextMessage(String, String) - Method in class pbx.PBXClient
Reports incoming message
resample(byte[], byte[]) - Method in class audio.AudioInterfacePCM
Simple PCM down sampler.
resetClock() - Method in class protocol.CallContext
Resets the clock.
resumeEncoding() - Method in class utils.Base64.OutputStream
Resumes encoding of the stream.
ringerThread - Variable in class audio.AudioInterfacePCM
 
ringerWorker() - Method in class audio.AudioInterfacePCM
Writes ring signal samples to audio output
ringSamples - Variable in class audio.AudioInterfacePCM
 
ringTimer - Variable in class audio.AudioInterfacePCM
 
run() - Method in class pbx.PBXClient
Connects socket, then reads messages from server while running flag is enabled.
run() - Method in class protocol.DatagramChannel
Receives (and deciphers) PDUs from remote peers in a loop.
run() - Method in class protocol.RemotePeer
Manages the incoming PDUs stored in the PDUs queue.
running - Variable in class pbx.PBXClient
Indicates/enables the thread to be running
running - Variable in class protocol.DatagramChannel
Indicates that worker thread should be running (receiving datagrams)

S

sampleSize - Variable in class audio.AudioCodecAlaw
 
sampleSize - Variable in class audio.AudioCodecUlaw
 
sanityCheck() - Method in class crypto.AsymmetricCipher
Sanity check whether PublicEncryptor works with PrivateEncryption
saveKeyPair() - Method in class crypto.AsymmetricCipher
Saves private/public key pair with description (this.keyPairComment)
saveObject(Serializable, String, String) - Static method in class crypto.AsymmetricCipher
Saves serializable object encoded in Base64 to file
secret - Variable in class pbx.PBXClient.ControlMessage
 
secretKey - Variable in class crypto.SymmetricCipher
Secret key used to encrypt/decrypt data.
secureDialButton - Variable in class CryptoPhoneApp
 
secureDialButton_Clicked() - Method in class CryptoPhoneApp
Performs :invite+ command.
securityState - Variable in class CryptoPhoneApp
 
seg_end - Static variable in class audio.AudioCodecAlaw
 
SEG_MASK - Static variable in class audio.AudioCodecAlaw
 
SEG_SHIFT - Static variable in class audio.AudioCodecAlaw
 
send() - Method in interface audio.AudioInterface.Packetizer
 
send(String) - Method in class pbx.PBXClient
Sends message (appended with new-line) to chat server
send(String, String) - Method in class pbx.PBXClient
Sends message (appended with new-line) to chat server prefixed with userId
send(OctetBuffer) - Method in class protocol.CallContext
Sends a PDU to our peer.
send(OctetBuffer, InetAddress, int) - Method in class protocol.DatagramChannel
Encrypts and sends PDUs to remote peer
send(OctetBuffer) - Method in class protocol.RemotePeer
Sends packet to remote peer over datagram channel
send() - Method in class protocol.VoicePDUSender
Sends audio as payload encapsulated in VoicePDU
sendAccept(String, String, int, String) - Method in class pbx.PBXClient
Broadcasts ACCEPT message
sendAudioFrame(long) - Method in class audio.AudioInterfacePCM
Called every FRAMEINTERVAL ms to send audio frame
sendButton - Variable in class CryptoPhoneApp
 
sendButton_Clicked() - Method in class CryptoPhoneApp
Parses input text entered by the user in inputMsg.
sendBye(String, String, int) - Method in class pbx.PBXClient
Broadcasts BYE message
sendInstantMessage(String, boolean) - Method in class CryptoPhoneApp
Sends chat message (encrypted if we have established secure channel with the user).
sendInstantMessage(String, String) - Method in class pbx.PBXClient
Broadcasts IMSG message
sendInvite(String, String, int, String) - Method in class pbx.PBXClient
Broadcasts INVITE message
sendListPeers(String) - Method in class pbx.PBXClient
Broadcasts LIST message (to list potential peers)
sendPayload(byte[]) - Method in class protocol.ProtocolDataUnit
Sends a specified payload.
sendRing(String, String, int, String) - Method in class pbx.PBXClient
Broadcasts RING message
serializedPublicKey - Variable in class crypto.AsymmetricCipher
Our public key: serialized and encoded as Base64 string.
serializedPublicKey - Variable in class crypto.PublicEncryptor
Remote public key: serialized and encoded as Base64 string.
serializePublicKey() - Method in class crypto.AsymmetricCipher
Serializes the public key, signs it and encodes in Base64 format
serialVersionUID - Static variable in class crypto.NamedKeyPair
Implements java.io.Serializable interface
serialVersionUID - Static variable in class crypto.NamedPublicKey
Implements java.io.Serializable interface
serialVersionUID - Static variable in class CryptoPhoneApp
Implements java.io.Serializable interface
serialVersionUID - Static variable in class ui.JImageButton
 
serialVersionUID - Static variable in class ui.JSecState
 
serverName - Variable in class CryptoPhoneApp
The host name or IP address of the remote chat server
serverPort - Variable in class CryptoPhoneApp
The TCP port where to connect to on remote chat server
setAudioSender(AudioInterface.Packetizer) - Method in class audio.AbstractCODEC
Sets the audioSender attribute of the AbstractAudio object
setAudioSender(AudioInterface.Packetizer) - Method in interface audio.AudioInterface
Sets the audioSender attribute of the AbstractAudio object
setAudioSender(AudioInterface.Packetizer) - Method in class audio.AudioInterfacePCM
Sets the active audio sender for the recorder
setCallEstablished(boolean) - Method in class protocol.CallContext
Sets if this call is established.
setDestinationCallNumber(int) - Method in class protocol.CallContext
Sets the remote call number as a character.
setEnabled(Log, boolean) - Static method in enum utils.Log
Enables/disables the Log channel
setInSeqNo(int) - Method in class protocol.CallContext
Sets the inbound stream sequence number.
setPbxStatus(String) - Method in class CryptoPhoneApp
Updates status message by updating window title
setPbxStatus(String) - Method in interface pbx.PBXClient.Context
Updates PBX status message of the parent
setRead() - Method in class audio.AudioBuffer
Resets the flag 'written'
setSourceCallNumber(int) - Method in class protocol.CallContext
Sets the local call number as a character.
setState(JSecState.State) - Method in class ui.JSecState
Stes new security state
setTimestamp(long) - Method in class audio.AudioBuffer
Associates time-stamp with the buffer.
setTimestamp(long) - Method in class protocol.ProtocolDataUnit
Sets the time stamp as long.
setWritten() - Method in class audio.AudioBuffer
Sets the flag 'written'
showChannels - Static variable in enum utils.Log
Current channels to be logged.
SIGN_BIT - Static variable in class audio.AudioCodecAlaw
 
signObject(Serializable) - Method in class crypto.AsymmetricCipher
Signs object using private key
silenceSamples - Variable in class audio.AudioInterfacePCM
 
slice() - Method in class utils.OctetBuffer
Slices buffer
sliceOffset - Variable in class utils.OctetBuffer
Offset into backing store to enable slicing
socket - Variable in class pbx.PBXClient
Instance of the TCP socket to chat server.
socket - Variable in class protocol.RemotePeer
The UDP channel
sourceCallNumber - Variable in class protocol.CallContext
Represents the Source Call Number in the PDU header
sourceCallNumber - Variable in class protocol.ProtocolDataUnit
The source call number
sourceDataLine - Variable in class audio.AudioInterfacePCM
 
start() - Method in class pbx.PBXClient
Starts the thread.
startAudioRecording() - Method in class protocol.CallContext
Starts sending our audio interface recording.
startKryptofonServices() - Method in class CryptoPhoneApp
Starts audio interface and UDP peer-to-peer channel.
startPlay() - Method in class audio.AbstractCODEC
Starts the player
startPlay() - Method in interface audio.AudioInterface
Starts the player
startPlay() - Method in class audio.AudioInterfacePCM
Starts the audio output worker thread
startReceiver() - Method in class protocol.RemotePeer
This method starts the receiver thread for inbound PDUs.
startRecording() - Method in class audio.AbstractCODEC
Starts the recorder (returning the time)
startRecording() - Method in interface audio.AudioInterface
Starts the recorder (returning the time-stamp)
startRecording() - Method in class audio.AudioInterfacePCM
Start the audio recording worker thread
startRinging() - Method in class audio.AbstractCODEC
Starts ringing signal
startRinging() - Method in interface audio.AudioInterface
Starts ringing signal
startRinging() - Method in class audio.AudioInterfacePCM
Starts ringing signal
startTimestamp - Variable in class protocol.CallContext
The start time-stamp of the call
state - Variable in class ui.JSecState
Current security state
stereo8k - Variable in class audio.AudioInterfacePCM
 
stop() - Method in class protocol.DatagramChannel
Stops PDU receiver thread
stopAudioRecording() - Method in class protocol.CallContext
Stops sending audio
stopKryptofonServices() - Method in class CryptoPhoneApp
Stops audio interface and UDP peer-to-peer channel.
stopPlay() - Method in class audio.AbstractCODEC
Stops the player
stopPlay() - Method in interface audio.AudioInterface
Stops the player
stopPlay() - Method in class audio.AudioInterfacePCM
Stops the audio output worker thread
stopRecording() - Method in class audio.AbstractCODEC
Stops the recorder - but don't throw it away.
stopRecording() - Method in interface audio.AudioInterface
Stops the recorder - but don't throw it away.
stopRecording() - Method in class audio.AudioInterfacePCM
Stops the audio recording worker thread
stopRinging() - Method in class audio.AbstractCODEC
Stops ringing signal
stopRinging() - Method in interface audio.AudioInterface
Stops ringing signal
stopRinging() - Method in class audio.AudioInterfacePCM
Stops ringing singnal
store - Variable in class utils.OctetBuffer
The octet storage
suspendEncoding - Variable in class utils.Base64.OutputStream
 
suspendEncoding() - Method in class utils.Base64.OutputStream
Suspends encoding of the stream.
SymmetricCipher - Class in crypto
Instances of the Symmetric cipher class arew used to cipher peer-to-peer datagram packets.
SymmetricCipher(SecretKey, String) - Constructor for class crypto.SymmetricCipher
Wraps existing secret key with information about verificatory (if any).
SymmetricCipher(String, int, boolean) - Constructor for class crypto.SymmetricCipher
Generates a new secret key using specified algorithm and key size.

T

targetDataLine - Variable in class audio.AudioInterfacePCM
 
timestamp - Variable in class audio.AudioBuffer
 
timeStamp - Variable in class protocol.ProtocolDataUnit
The time-stamp
timestamp - Variable in class protocol.VoicePDUSender
 
toHex(byte[], int, String) - Static method in enum utils.Log
Converts a byte array into a hex string, using the specified separator.
toHex(byte[], String) - Static method in enum utils.Log
Converts a byte array into a hex string, using the specified separator.
toHex(byte[]) - Static method in enum utils.Log
Converts a byte array into a hex string.
toInt(byte) - Static method in class utils.OctetBuffer
Converts a 'byte' to an 'int'.
tokenizeInputMessage() - Method in class CryptoPhoneApp
Tokenizes inputMsg into words and returns array of strings.
trace(String) - Static method in enum utils.Log
Logs a program trace message.
transmitting - Variable in class protocol.RemotePeer
Indicates whether communication with peer is active or not
tryToVerifyInvitingCall(boolean) - Method in class CryptoPhoneApp
Verifies invitor's public key (signed by invitor's private key) against the public keys from authorized keys file.

U

udpChannel - Variable in class CryptoPhoneApp
The instance of the UDP transceiver responsible for peer-to-peer communication between two Kryptofons.
udpReceiver - Variable in class protocol.DatagramChannel
The UDP receiver socket
ui - package ui
Components that exstends Swing GUI
ULAW - Static variable in class protocol.VoicePDU
Voice PDU Subclass: G.711 u-Law
ulaw2lin_table - Static variable in class audio.AudioCodecUlaw
 
ulaw2linear(byte) - Static method in class audio.AudioCodecUlaw
Converts an 8-bit u-law value to 16-bit linear PCM
URL_SAFE - Static variable in class utils.Base64
Encode using Base64-like encoding that is URL- and Filename-safe as described in Section 4 of RFC3548: http://www.faqs.org/rfcs/rfc3548.html.
usedPduCipher - Variable in class protocol.DatagramChannel
Currently used symmetric cipher
userId - Variable in class CryptoPhoneApp
 
useSymmetricCipher(SymmetricCipher) - Method in class protocol.DatagramChannel
Sets cipher to be used for PDU ciphering
utils - package utils
Various utilities to handle base64 encoding, log and octet buffers

V

valueOf(String) - Static method in enum pbx.PBXClient.CMType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum ui.JSecState.State
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum utils.Log
Returns the enum constant of this type with the specified name.
values() - Static method in enum pbx.PBXClient.CMType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum ui.JSecState.State
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum utils.Log
Returns an array containing the constants of this enum type, in the order they are declared.
verb(String) - Static method in enum utils.Log
Logs a verbose message.
verificator - Variable in class crypto.PublicEncryptor
Contains name of the verificator (i.e the name associated with authorized public key that has verified this public key).
verificator - Variable in class crypto.SymmetricCipher
Contains name of the verificator (i.e the name associated with authorized public key that has verified this public key).
verifyObject(SignedObject) - Static method in class crypto.PublicEncryptor
Verifies signed object with a public key from the authorized public keys
VOICE - Static variable in class protocol.ProtocolDataUnit
PDU Type: Data Audio Compression Format Raw Voice Data
VoicePDU - Class in protocol
VoicePDU - The PDU that carries voice payload.
VoicePDU(CallContext, int) - Constructor for class protocol.VoicePDU
The constructor for outbound Voice PDUs.
VoicePDU(CallContext, byte[]) - Constructor for class protocol.VoicePDU
The constructor for inbound Voice PDUs.
VoicePDUSender - Class in protocol
Takes captured audio and sends it to the remote peer via UDP channel
VoicePDUSender(AudioInterface, CallContext) - Constructor for class protocol.VoicePDUSender
Constructor for the VoicePDUSender object
voicePduSubclass - Variable in class protocol.VoicePDUSender
 

W

WARN - Static variable in class pbx.PBXClient
HTML CSS class for warning and error messages
warn(String) - Static method in enum utils.Log
Logs a warning message.
where() - Static method in enum utils.Log
Prints where this message was called from, via a stack trace.
WHITE_SPACE_ENC - Static variable in class utils.Base64
 
wrap(byte[]) - Static method in class utils.OctetBuffer
Wraps existing byte[] array
write(int) - Method in class utils.Base64.OutputStream
Writes the byte to the output stream after converting to/from Base64 notation.
write(byte[], int, int) - Method in class utils.Base64.OutputStream
Calls Base64.OutputStream.write(int) repeatedly until len bytes are written.
writeBuffered(byte[], long) - Method in class audio.AbstractCODEC
Plays the sample given (AudioInterface.getSampleSize() bytes) assuming that it's timestamp is long
writeBuffered(byte[], long) - Method in interface audio.AudioInterface
Plays the sample given (AudioInterface.getSampleSize() bytes) assuming that it's timestamp is long
writeBuffered(byte[], long) - Method in class audio.AudioInterfacePCM
Enqueue packet for playing into de-jitter buffer.
writeBuffersToAudioOutput() - Method in class audio.AudioInterfacePCM
Writes de-jittered audio frames to audio output
writeDirectIfAvail(byte[]) - Method in class audio.AudioInterfacePCM
Writes audio samples to audio output directly (without using jitter buffer).
writeDirectly(byte[]) - Method in class audio.AbstractCODEC
Writes directly to source line without buffering
writeDirectly(byte[]) - Method in interface audio.AudioInterface
Writes directly to source line without buffering
writeDirectly(byte[]) - Method in class audio.AudioInterfacePCM
Writes directly to source line without buffering
written - Variable in class audio.AudioBuffer
 

Z

ZEROTRAP - Static variable in class audio.AudioCodecUlaw
 

_

_ORDERED_ALPHABET - Static variable in class utils.Base64
I don't get the point of this technique, but someone requested it, and it is described here: http://www.faqs.org/qa/rfcc-1940.html.
_ORDERED_DECODABET - Static variable in class utils.Base64
Used in decoding the "ordered" dialect of Base64.
_STANDARD_ALPHABET - Static variable in class utils.Base64
The 64 valid Base64 values.
_STANDARD_DECODABET - Static variable in class utils.Base64
Translates a Base64 value to either its 6-bit reconstruction value or a negative number indicating some other meaning.
_URL_SAFE_ALPHABET - Static variable in class utils.Base64
Used in the URL- and Filename-safe dialect described in Section 4 of RFC3548: http://www.faqs.org/rfcs/rfc3548.html.
_URL_SAFE_DECODABET - Static variable in class utils.Base64
Used in decoding URL- and Filename-safe dialects of Base64.

A B C D E F G H I J K L M N O P Q R S T U V W Z _