Package com.itextpdf.kernel.mac
Class MacProperties
java.lang.Object
com.itextpdf.kernel.mac.MacProperties
Class which contains configurable properties for MAC integrity protection mechanism.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumKey wrapping algorithms, which can be used in MAC integrity protection algorithm.static enumMAC algorithms, which can be used during integrity protection operation.static enumMessage digest algorithms, which can be used in MAC integrity protection algorithm. -
Constructor Summary
ConstructorsConstructorDescriptionMacProperties(MacProperties.MacDigestAlgorithm macDigestAlgorithm) CreatesMacPropertiesclass containing providedMacProperties.MacDigestAlgorithm.MacProperties(MacProperties.MacDigestAlgorithm macDigestAlgorithm, MacProperties.MacAlgorithm macAlgorithm, MacProperties.KeyWrappingAlgorithm keyWrappingAlgorithm) CreatesMacPropertiesclass containing provided properties. -
Method Summary
Modifier and TypeMethodDescriptionGetsMacProperties.KeyWrappingAlgorithmto be used in MAC integrity protection algorithm.GetsMacProperties.MacAlgorithmto be used in MAC integrity protection algorithm.GetsMacProperties.MacDigestAlgorithmto be used in MAC integrity protection algorithm.static StringmacDigestAlgorithmToString(MacProperties.MacDigestAlgorithm macDigestAlgorithm)
-
Constructor Details
-
MacProperties
CreatesMacPropertiesclass containing providedMacProperties.MacDigestAlgorithm. For other properties default values are used.- Parameters:
-
macDigestAlgorithm-MacProperties.MacDigestAlgorithmto be used in MAC integrity protection algorithm
-
MacProperties
public MacProperties(MacProperties.MacDigestAlgorithm macDigestAlgorithm, MacProperties.MacAlgorithm macAlgorithm, MacProperties.KeyWrappingAlgorithm keyWrappingAlgorithm) CreatesMacPropertiesclass containing provided properties.- Parameters:
-
macDigestAlgorithm-MacProperties.MacDigestAlgorithmto be used in MAC integrity protection algorithm -
macAlgorithm-MacProperties.MacAlgorithmto be used in MAC integrity protection algorithm -
keyWrappingAlgorithm-MacProperties.KeyWrappingAlgorithmto be used in MAC integrity protection algorithm
-
-
Method Details
-
getMacDigestAlgorithm
GetsMacProperties.MacDigestAlgorithmto be used in MAC integrity protection algorithm.- Returns:
-
MacProperties.MacDigestAlgorithmto be used in MAC integrity protection algorithm
-
getMacAlgorithm
GetsMacProperties.MacAlgorithmto be used in MAC integrity protection algorithm.- Returns:
-
MacProperties.MacAlgorithmto be used in MAC integrity protection algorithm
-
getKeyWrappingAlgorithm
GetsMacProperties.KeyWrappingAlgorithmto be used in MAC integrity protection algorithm.- Returns:
-
MacProperties.KeyWrappingAlgorithmto be used in MAC integrity protection algorithm
-
macDigestAlgorithmToString
public static String macDigestAlgorithmToString(MacProperties.MacDigestAlgorithm macDigestAlgorithm)
-