Package com.itextpdf.kernel.mac
Class MacProperties
- java.lang.Object
-
- com.itextpdf.kernel.mac.MacProperties
-
public class MacProperties extends java.lang.ObjectClass which contains configurable properties for MAC integrity protection mechanism.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMacProperties.KeyWrappingAlgorithmKey wrapping algorithms, which can be used in MAC integrity protection algorithm.static classMacProperties.MacAlgorithmMAC algorithms, which can be used during integrity protection operation.static classMacProperties.MacDigestAlgorithmMessage digest algorithms, which can be used in MAC integrity protection algorithm.
-
Field Summary
Fields Modifier and Type Field Description private MacProperties.KeyWrappingAlgorithmkeyWrappingAlgorithmprivate MacProperties.MacAlgorithmmacAlgorithmprivate MacProperties.MacDigestAlgorithmmacDigestAlgorithm
-
Constructor Summary
Constructors Constructor Description MacProperties(MacProperties.MacDigestAlgorithm macDigestAlgorithm)CreatesMacPropertiesclass containing providedMacProperties.MacDigestAlgorithm.MacProperties(MacProperties.MacDigestAlgorithm macDigestAlgorithm, MacProperties.MacAlgorithm macAlgorithm, MacProperties.KeyWrappingAlgorithm keyWrappingAlgorithm)CreatesMacPropertiesclass containing provided properties.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MacProperties.KeyWrappingAlgorithmgetKeyWrappingAlgorithm()GetsMacProperties.KeyWrappingAlgorithmto be used in MAC integrity protection algorithm.MacProperties.MacAlgorithmgetMacAlgorithm()GetsMacProperties.MacAlgorithmto be used in MAC integrity protection algorithm.MacProperties.MacDigestAlgorithmgetMacDigestAlgorithm()GetsMacProperties.MacDigestAlgorithmto be used in MAC integrity protection algorithm.static java.lang.StringmacDigestAlgorithmToString(MacProperties.MacDigestAlgorithm macDigestAlgorithm)
-
-
-
Field Detail
-
macDigestAlgorithm
private final MacProperties.MacDigestAlgorithm macDigestAlgorithm
-
macAlgorithm
private final MacProperties.MacAlgorithm macAlgorithm
-
keyWrappingAlgorithm
private final MacProperties.KeyWrappingAlgorithm keyWrappingAlgorithm
-
-
Constructor Detail
-
MacProperties
public MacProperties(MacProperties.MacDigestAlgorithm macDigestAlgorithm)
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 algorithmmacAlgorithm-MacProperties.MacAlgorithmto be used in MAC integrity protection algorithmkeyWrappingAlgorithm-MacProperties.KeyWrappingAlgorithmto be used in MAC integrity protection algorithm
-
-
Method Detail
-
getMacDigestAlgorithm
public MacProperties.MacDigestAlgorithm getMacDigestAlgorithm()
GetsMacProperties.MacDigestAlgorithmto be used in MAC integrity protection algorithm.- Returns:
MacProperties.MacDigestAlgorithmto be used in MAC integrity protection algorithm
-
getMacAlgorithm
public MacProperties.MacAlgorithm getMacAlgorithm()
GetsMacProperties.MacAlgorithmto be used in MAC integrity protection algorithm.- Returns:
MacProperties.MacAlgorithmto be used in MAC integrity protection algorithm
-
getKeyWrappingAlgorithm
public MacProperties.KeyWrappingAlgorithm getKeyWrappingAlgorithm()
GetsMacProperties.KeyWrappingAlgorithmto be used in MAC integrity protection algorithm.- Returns:
MacProperties.KeyWrappingAlgorithmto be used in MAC integrity protection algorithm
-
macDigestAlgorithmToString
public static java.lang.String macDigestAlgorithmToString(MacProperties.MacDigestAlgorithm macDigestAlgorithm)
-
-