| Modifier and Type | Field and Description |
|---|---|
| protected byte[] |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized byte[] | calculateHMAC(int
the hash algorithm to instantiate HMAC with. See cryptoHashAlgorithm, byte[] CryptoHashAlgorithm for values.array containing the input data. buf, int offset into the input array the input starts at. off, int the length of the input data. len)Implements org. Calculate an HMAC with this secret's data as the key. |
| protected void | |
| protected static byte[] | |
| pack-priv synchronized byte[] | |
| public synchronized void | destroy()
Implements org. Destroy the internal state of the secret. |
| public synchronized byte[] | encrypt(TlsEncryptor
the encryptor to use for protecting the internal data. encryptor)Implements org. Return an encrypted copy of the data this secret is based on. |
| public synchronized byte[] | extract()
Implements org. Return the internal data from this secret. |
| protected abstract AbstractTlsCrypto | |
| public synchronized boolean |
| data | back to summary |
|---|---|
| protected byte[] data | |
| AbstractTlsSecret | back to summary |
|---|---|
| protected AbstractTlsSecret(byte[] data) Base constructor.
| |
| calculateHMAC | back to summary |
|---|---|
| public synchronized byte[] calculateHMAC(int cryptoHashAlgorithm, byte[] buf, int off, int len) Implements org. Doc from org. Calculate an HMAC with this secret's data as the key.
| |
| checkAlive | back to summary |
|---|---|
| protected void checkAlive() | |
| copyData | back to summary |
|---|---|
| protected static byte[] copyData(AbstractTlsSecret other) | |
| copyData | back to summary |
|---|---|
| pack-priv synchronized byte[] copyData() | |
| destroy | back to summary |
|---|---|
| public synchronized void destroy() Implements org. Doc from org. Destroy the internal state of the secret. After this call, any attempt to use the
| |
| encrypt | back to summary |
|---|---|
| public synchronized byte[] encrypt(TlsEncryptor encryptor) throws IOException Implements org. Doc from org. Return an encrypted copy of the data this secret is based on.
| |
| extract | back to summary |
|---|---|
| public synchronized byte[] extract() Implements org. Doc from org. Return the internal data from this secret. The
| |
| getCrypto | back to summary |
|---|---|
| protected abstract AbstractTlsCrypto getCrypto() | |
| isAlive | back to summary |
|---|---|
| public synchronized boolean isAlive() Implements org. | |