public class EncryptionAgent extends Object
Modifier and Type | Field and Description |
---|---|
EncryptionAlgorithm |
encryptionAlgorithm
The algorithm used for encryption.
|
String |
protocol
The protocol version used for encryption.
|
Constructor and Description |
---|
EncryptionAgent()
Initializes a new instance of the
EncryptionAgent class. |
EncryptionAgent(String protocol,
EncryptionAlgorithm algorithm)
Initializes a new instance of the
EncryptionAgent class using the specified protocol version and the
algorithm. |
Modifier and Type | Method and Description |
---|---|
static EncryptionAgent |
deserialize(com.fasterxml.jackson.core.JsonParser parser) |
EncryptionAlgorithm |
getEncryptionAlgorithm()
Gets the algorithm used for encryption.
|
String |
getProtocol()
Gets the protocol version used for encryption.
|
void |
serialize(com.fasterxml.jackson.core.JsonGenerator generator) |
void |
setEncryptionAlgorithm(EncryptionAlgorithm encryptionAlgorithm)
Sets the algorithm used for encryption.
|
void |
setProtocol(String protocol)
Sets the protocol version used for encryption.
|
public EncryptionAlgorithm encryptionAlgorithm
public String protocol
public EncryptionAgent()
EncryptionAgent
class.public EncryptionAgent(String protocol, EncryptionAlgorithm algorithm)
EncryptionAgent
class using the specified protocol version and the
algorithm.protocol
- The encryption protocol version.algorithm
- The encryption algorithm.public EncryptionAlgorithm getEncryptionAlgorithm()
public String getProtocol()
public void setEncryptionAlgorithm(EncryptionAlgorithm encryptionAlgorithm)
encryptionAlgorithm
- The algorithm used for encryption.public void setProtocol(String protocol)
protocol
- The protocol version used for encryption.public void serialize(com.fasterxml.jackson.core.JsonGenerator generator) throws IOException
IOException
public static EncryptionAgent deserialize(com.fasterxml.jackson.core.JsonParser parser) throws com.fasterxml.jackson.core.JsonParseException, IOException
com.fasterxml.jackson.core.JsonParseException
IOException
Copyright © 2019. All rights reserved.