EncryptionAgent Class

  • java.lang.Object
    • com.microsoft.azure.storage.core.EncryptionAgent

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
EncryptionAlgorithm 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
EncryptionAgent deserialize(JsonParser parser)
EncryptionAlgorithm 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:

protocol - The encryption protocol version.
algorithm - The encryption algorithm.

Method Details

deserialize

public static EncryptionAgent deserialize(JsonParser parser)

Parameters:

parser

getEncryptionAlgorithm

public EncryptionAlgorithm getEncryptionAlgorithm()

Gets the algorithm used for encryption.

Returns:

The algorithm used for encryption.

getProtocol

public String getProtocol()

Gets the protocol version used for encryption.

Returns:

The protocol version used for encryption.

serialize

public void serialize(JsonGenerator generator)

Parameters:

generator

setEncryptionAlgorithm

public void setEncryptionAlgorithm(EncryptionAlgorithm encryptionAlgorithm)

Sets the algorithm used for encryption.

Parameters:

encryptionAlgorithm - The algorithm used for encryption.

setProtocol

public void setProtocol(String protocol)

Sets the protocol version used for encryption.

Parameters:

protocol - The protocol version used for encryption.

Applies to