Serialized Form
-
Package anbxj
-
Exception Class anbxj.AnB_CheckFailedException
class AnB_CheckFailedException extends Exception implements Serializable- serialVersionUID:
- 1L
-
Class anbxj.AnBx_Agent
class AnBx_Agent extends Object implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
alias
String alias
The principal's alias (identifier) used in protocol exchanges. -
cert
Map<Crypto_KeyStoreType,
Certificate> cert Mapping from keystore types to their associated certificates. May benullwhen no certificates are known (e.g., for anonymous agents).
-
-
Exception Class anbxj.AnBx_LibraryException
class AnBx_LibraryException extends RuntimeException implements Serializable- serialVersionUID:
- 1L
-
Class anbxj.AnBx_Params
class AnBx_Params extends Object implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
v
Object[] v
Array of objects containing AnBx parameters.
-
-
Class anbxj.AnBx_WireFormats.SealedMessage
class SealedMessage extends Object implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
cipherScheme
String cipherScheme
The cipher scheme string (e.g. "AES/GCM/NoPadding"). -
encryptedKey
byte[] encryptedKey
The encrypted symmetric key bytes (may benullif no key transport). -
sealedPayload
byte[] sealedPayload
The encrypted message payload bytes (nevernull).
-
-
Class anbxj.AnBx_WireFormats.SignedMessage
class SignedMessage extends Object implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
algorithm
String algorithm
The signature algorithm name (e.g. "SHA256withRSA"). -
content
byte[] content
The raw signed content bytes (nevernull). -
signature
byte[] signature
The raw signature bytes (nevernull).
-
-
Class anbxj.Channel_Settings
class Channel_Settings extends Object implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
AuthenticatedChannel
boolean AuthenticatedChannel
Flag indicating whether the channel requires authentication. -
cr
Channel_Roles cr
Roles of the channel. -
ct
Channel_SSLChannelType ct
Type of SSL channel. -
ctx
String ctx
Type of SSL context. -
host
String host
Hostname or IP address of the channel. -
port
int port
Port number for the channel. -
SecretChannel
boolean SecretChannel
Flag indicating whether the channel requires secrecy.
-
-
Class anbxj.Crypto_ByteArray
class Crypto_ByteArray extends Object implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
bytearray
byte[] bytearray
The byte array
-
-
Class anbxj.Crypto_HmacPair
class Crypto_HmacPair extends Object implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
hashValue
Crypto_ByteArray hashValue
Hash value resulting from the HMAC operation. -
HMacAlgorithm
String HMacAlgorithm
HMAC algorithm used. -
k
Crypto_SealedPair k
Sealed Pair used in case of a secret random hash. -
sk
SecretKey sk
Secret Key used in case of a public random hash.
-
-
Class anbxj.Crypto_KeyStoreSettings
class Crypto_KeyStoreSettings extends Object implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
certificateType
String certificateType
Default certificate type. -
keyStoreType
String keyStoreType
Type of the KeyStore. -
localKeyStore
String localKeyStore
Path to the local KeyStore containing private keys. -
myAlias
String myAlias
Alias for the KeyStore. -
passphraseLocalKeyStore
String passphraseLocalKeyStore
Passphrase for local KeyStore. -
passphrasePrivateKeyLocalKeyStore
String passphrasePrivateKeyLocalKeyStore
Passphrase for the private key in local KeyStore. -
passphraseRemoteKeyStore
String passphraseRemoteKeyStore
Passphrase for remote KeyStore. -
remoteKeyStore
String remoteKeyStore
Path to the remote KeyStore containing public keys. -
rootCA
String rootCA
Root Certificate Authority.
-
-
Class anbxj.Crypto_SealedObject
class Crypto_SealedObject extends Object implements Serializable- serialVersionUID:
- 20260607001L
-
Serialization Methods
-
readObject
Custom read-object method for Java serialisation.Reads the marker byte written by
Crypto_SealedObject.writeObject(java.io.ObjectOutputStream)and reconstructs either a symmetric (marker 0) or asymmetric (marker 1) instance. The raw fields are always populated, so the object is immediately usable in all serialisation modes.- Parameters:
in- the input stream to read from- Throws:
IOException- if an I/O error occursClassNotFoundException- if theCrypto_SealedPairclass cannot be found (should never happen)
-
writeObject
Custom write-object method for Java serialisation.To maintain backward compatibility with the existing
Crypto_SealedPairwire format, this method writes either a single-byte marker followed by the raw symmetric fields (symmetric mode), or a marker followed by a fullCrypto_SealedPairobject (asymmetric mode). This ensures that the binary representation on the wire is identical to the oldCrypto_SealedPairformat when an asymmetric key is present.Format (symmetric):
- byte 0 (marker)
- int length of encrypted message
- encrypted message bytes
- UTF string cipher scheme
- byte 1 (marker)
- serialised
Crypto_SealedPair
- Parameters:
out- the output stream to write to- Throws:
IOException- if an I/O error occurs
-
-
Serialized Fields
-
cipherScheme
String cipherScheme
The cipher scheme used for encryption (e.g."AES/GCM/NoPadding"). -
encryptedKey
byte[] encryptedKey
The encrypted symmetric key (hybrid encryption), ornullfor pure symmetric encryption. -
encryptedMessage
byte[] encryptedMessage
The encrypted message payload (nevernull).
-
-
Class anbxj.Crypto_SealedPair
class Crypto_SealedPair extends Object implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
cipherScheme
String cipherScheme
The cipher scheme used.This field stores the cipher scheme used for encryption as a String.
-
digest
Crypto_ByteArray digest
The cryptographic byte array digest.This field represents a cryptographic byte array digest, possibly used for cryptographic operations.
-
sealedKey
SealedObject sealedKey
The sealed key.This field holds the sealed key, which is an instance of
SealedObject. -
sealedMessage
SealedObject sealedMessage
The sealed message.This field holds the sealed message, which is an instance of
SealedObject.
-
-
Class anbxj.Crypto_SignedObject
class Crypto_SignedObject extends Object implements Serializable- serialVersionUID:
- 20260608001L
-
Serialization Methods
-
readObject
Custom read-object method for Java serialisation.First reads a marker byte. If it is
0the new raw-fields format is used; otherwise the stream is reset and a legacySignedObjectis deserialised, from which the raw fields are extracted. This provides backward compatibility with data written by older versions of the library.- Parameters:
in- the input stream to read from- Throws:
IOException- if an I/O error occursClassNotFoundException- if theSignedObjectclass cannot be found (legacy fallback)AnBx_LibraryException- if extraction of the legacy object fails
-
writeObject
Custom write-object method for Java serialisation.Always writes the raw fields (
content,signature,algorithm) in a deterministic order, independent of how the instance was created. This guarantees thatmakeDigestyields the same result on sender and receiver.Binary format (marker = 0):
- byte marker (0)
- int length of content
- content bytes
- int length of signature
- signature bytes
- int length of algorithm name (UTF-8)
- algorithm name bytes
- Parameters:
out- the output stream to write to- Throws:
IOException- if an I/O error occurs
-
-
Serialized Fields
-
algorithm
String algorithm
The signature algorithm name, e.g."SHA256withRSA"(always populated). -
content
byte[] content
The serialised content of the signed object (always populated). -
signature
byte[] signature
The raw signature bytes (always populated). -
signedObject
SignedObject signedObject
The originalSignedObjectwhen the instance was created from Java serialisation (JavaSer mode);nullin ProtoBuf / byte-oriented modes.
-
-
Class anbxj.Crypto_SignedPair
class Crypto_SignedPair extends Object implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
signatureScheme
String signatureScheme
The signature scheme used.This field stores the signature scheme used for signing as a String.
-
signedContent
Object signedContent
The signed content.This field holds the content that has been signed. The type of the content can vary depending on the context.
-
signedObject
SignedObject signedObject
The signed object.This field holds a signed object, which is an instance of
SignedObject.
-
-
Exception Class anbxj.Crypto_TimeStampException
class Crypto_TimeStampException extends Exception implements Serializable- serialVersionUID:
- 1L
-