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
Modifier and TypeClassDescriptionstatic enum
Key wrapping algorithms, which can be used in MAC integrity protection algorithm.static enum
MAC algorithms, which can be used during integrity protection operation.static enum
Message digest algorithms, which can be used in MAC integrity protection algorithm. -
Constructor Summary
ConstructorDescriptionMacProperties
(MacProperties.MacDigestAlgorithm macDigestAlgorithm) CreatesMacProperties
class containing providedMacProperties.MacDigestAlgorithm
.MacProperties
(MacProperties.MacDigestAlgorithm macDigestAlgorithm, MacProperties.MacAlgorithm macAlgorithm, MacProperties.KeyWrappingAlgorithm keyWrappingAlgorithm) CreatesMacProperties
class containing provided properties. -
Method Summary
Modifier and TypeMethodDescriptionGetsMacProperties.KeyWrappingAlgorithm
to be used in MAC integrity protection algorithm.GetsMacProperties.MacAlgorithm
to be used in MAC integrity protection algorithm.GetsMacProperties.MacDigestAlgorithm
to be used in MAC integrity protection algorithm.static String
macDigestAlgorithmToString
(MacProperties.MacDigestAlgorithm macDigestAlgorithm)
-
Constructor Details
-
MacProperties
CreatesMacProperties
class containing providedMacProperties.MacDigestAlgorithm
. For other properties default values are used.- Parameters:
-
macDigestAlgorithm
-MacProperties.MacDigestAlgorithm
to be used in MAC integrity protection algorithm
-
MacProperties
public MacProperties(MacProperties.MacDigestAlgorithm macDigestAlgorithm, MacProperties.MacAlgorithm macAlgorithm, MacProperties.KeyWrappingAlgorithm keyWrappingAlgorithm) CreatesMacProperties
class containing provided properties.- Parameters:
-
macDigestAlgorithm
-MacProperties.MacDigestAlgorithm
to be used in MAC integrity protection algorithm -
macAlgorithm
-MacProperties.MacAlgorithm
to be used in MAC integrity protection algorithm -
keyWrappingAlgorithm
-MacProperties.KeyWrappingAlgorithm
to be used in MAC integrity protection algorithm
-
-
Method Details
-
getMacDigestAlgorithm
GetsMacProperties.MacDigestAlgorithm
to be used in MAC integrity protection algorithm.- Returns:
-
MacProperties.MacDigestAlgorithm
to be used in MAC integrity protection algorithm
-
getMacAlgorithm
GetsMacProperties.MacAlgorithm
to be used in MAC integrity protection algorithm.- Returns:
-
MacProperties.MacAlgorithm
to be used in MAC integrity protection algorithm
-
getKeyWrappingAlgorithm
GetsMacProperties.KeyWrappingAlgorithm
to be used in MAC integrity protection algorithm.- Returns:
-
MacProperties.KeyWrappingAlgorithm
to be used in MAC integrity protection algorithm
-
macDigestAlgorithmToString
public static String macDigestAlgorithmToString(MacProperties.MacDigestAlgorithm macDigestAlgorithm)
-