EncryptionAgent Class
- java.
lang. Object - com.
microsoft. azure. storage. core. EncryptionAgent
- com.
public class EncryptionAgent
RESERVED FOR INTERNAL USE. Represents the encryption agent stored on the service. It consists of the encryption protocol version and encryption algorithm used.
Field Summary
Modifier and Type | Field and Description |
---|---|
Encryption |
encryptionAlgorithm
The algorithm used for encryption. |
String |
protocol
The protocol version used for encryption. |
Constructor Summary
Constructor | 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. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Encryption |
deserialize(JsonParser parser) |
Encryption |
getEncryptionAlgorithm()
Gets the algorithm used for encryption. |
String |
getProtocol()
Gets the protocol version used for encryption. |
void | serialize(JsonGenerator generator) |
void |
setEncryptionAlgorithm(EncryptionAlgorithm encryptionAlgorithm)
Sets the algorithm used for encryption. |
void |
setProtocol(String protocol)
Sets the protocol version used for encryption. |
Field Details
encryptionAlgorithm
public EncryptionAlgorithm encryptionAlgorithm
The algorithm used for encryption.
protocol
public String protocol
The protocol version used for encryption.
Constructor Details
EncryptionAgent
public EncryptionAgent()
Initializes a new instance of the EncryptionAgent class.
EncryptionAgent
public EncryptionAgent(String protocol, EncryptionAlgorithm algorithm)
Initializes a new instance of the EncryptionAgent class using the specified protocol version and the algorithm.
Parameters:
Method Details
deserialize
public static EncryptionAgent deserialize(JsonParser parser)
Parameters:
getEncryptionAlgorithm
public EncryptionAlgorithm getEncryptionAlgorithm()
Gets the algorithm used for encryption.
Returns:
getProtocol
public String getProtocol()
Gets the protocol version used for encryption.
Returns:
serialize
public void serialize(JsonGenerator generator)
Parameters:
setEncryptionAlgorithm
public void setEncryptionAlgorithm(EncryptionAlgorithm encryptionAlgorithm)
Sets the algorithm used for encryption.
Parameters:
setProtocol
public void setProtocol(String protocol)
Sets the protocol version used for encryption.
Parameters: