@Generated(value="software.amazon.awssdk:codegen") public final class MacAttributes extends Object implements SdkPojo, Serializable, ToCopyableBuilder<MacAttributes.Builder,MacAttributes>
Parameters that are required for DUKPT, HMAC, or EMV MAC generation or verification.
| Modifier and Type | Class and Description |
|---|---|
static interface |
MacAttributes.Builder |
static class |
MacAttributes.Type |
| Modifier and Type | Method and Description |
|---|---|
MacAlgorithm |
algorithm()
The encryption algorithm for MAC generation or verification.
|
String |
algorithmAsString()
The encryption algorithm for MAC generation or verification.
|
static MacAttributes.Builder |
builder() |
MacAlgorithmDukpt |
dukptCmac()
Parameters that are required for MAC generation or verification using DUKPT CMAC algorithm.
|
MacAlgorithmDukpt |
dukptIso9797Algorithm1()
Parameters that are required for MAC generation or verification using DUKPT ISO 9797 algorithm1.
|
MacAlgorithmDukpt |
dukptIso9797Algorithm3()
Parameters that are required for MAC generation or verification using DUKPT ISO 9797 algorithm2.
|
MacAlgorithmEmv |
emvMac()
Parameters that are required for MAC generation or verification using EMV MAC algorithm.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
static MacAttributes |
fromAlgorithm(MacAlgorithm algorithm)
Create an instance of this class with
algorithmAsString() initialized to the given value. |
static MacAttributes |
fromAlgorithm(String algorithm)
Create an instance of this class with
algorithmAsString() initialized to the given value. |
static MacAttributes |
fromDukptCmac(Consumer<MacAlgorithmDukpt.Builder> dukptCmac)
Create an instance of this class with
dukptCmac() initialized to the given value. |
static MacAttributes |
fromDukptCmac(MacAlgorithmDukpt dukptCmac)
Create an instance of this class with
dukptCmac() initialized to the given value. |
static MacAttributes |
fromDukptIso9797Algorithm1(Consumer<MacAlgorithmDukpt.Builder> dukptIso9797Algorithm1)
Create an instance of this class with
dukptIso9797Algorithm1() initialized to the given value. |
static MacAttributes |
fromDukptIso9797Algorithm1(MacAlgorithmDukpt dukptIso9797Algorithm1)
Create an instance of this class with
dukptIso9797Algorithm1() initialized to the given value. |
static MacAttributes |
fromDukptIso9797Algorithm3(Consumer<MacAlgorithmDukpt.Builder> dukptIso9797Algorithm3)
Create an instance of this class with
dukptIso9797Algorithm3() initialized to the given value. |
static MacAttributes |
fromDukptIso9797Algorithm3(MacAlgorithmDukpt dukptIso9797Algorithm3)
Create an instance of this class with
dukptIso9797Algorithm3() initialized to the given value. |
static MacAttributes |
fromEmvMac(Consumer<MacAlgorithmEmv.Builder> emvMac)
Create an instance of this class with
emvMac() initialized to the given value. |
static MacAttributes |
fromEmvMac(MacAlgorithmEmv emvMac)
Create an instance of this class with
emvMac() initialized to the given value. |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends MacAttributes.Builder> |
serializableBuilderClass() |
MacAttributes.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
MacAttributes.Type |
type()
Retrieve an enum value representing which member of this object is populated.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final MacAlgorithm algorithm()
The encryption algorithm for MAC generation or verification.
If the service returns an enum value that is not available in the current SDK version, algorithm will
return MacAlgorithm.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
algorithmAsString().
MacAlgorithmpublic final String algorithmAsString()
The encryption algorithm for MAC generation or verification.
If the service returns an enum value that is not available in the current SDK version, algorithm will
return MacAlgorithm.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
algorithmAsString().
MacAlgorithmpublic final MacAlgorithmDukpt dukptCmac()
Parameters that are required for MAC generation or verification using DUKPT CMAC algorithm.
public final MacAlgorithmDukpt dukptIso9797Algorithm1()
Parameters that are required for MAC generation or verification using DUKPT ISO 9797 algorithm1.
public final MacAlgorithmDukpt dukptIso9797Algorithm3()
Parameters that are required for MAC generation or verification using DUKPT ISO 9797 algorithm2.
public final MacAlgorithmEmv emvMac()
Parameters that are required for MAC generation or verification using EMV MAC algorithm.
public MacAttributes.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<MacAttributes.Builder,MacAttributes>public static MacAttributes.Builder builder()
public static Class<? extends MacAttributes.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public static MacAttributes fromAlgorithm(String algorithm)
algorithmAsString() initialized to the given value.
The encryption algorithm for MAC generation or verification.
algorithm - The encryption algorithm for MAC generation or verification.MacAlgorithmpublic static MacAttributes fromAlgorithm(MacAlgorithm algorithm)
algorithmAsString() initialized to the given value.
The encryption algorithm for MAC generation or verification.
algorithm - The encryption algorithm for MAC generation or verification.MacAlgorithmpublic static MacAttributes fromDukptCmac(MacAlgorithmDukpt dukptCmac)
dukptCmac() initialized to the given value.
Parameters that are required for MAC generation or verification using DUKPT CMAC algorithm.
dukptCmac - Parameters that are required for MAC generation or verification using DUKPT CMAC algorithm.public static MacAttributes fromDukptCmac(Consumer<MacAlgorithmDukpt.Builder> dukptCmac)
dukptCmac() initialized to the given value.
Parameters that are required for MAC generation or verification using DUKPT CMAC algorithm.
dukptCmac - Parameters that are required for MAC generation or verification using DUKPT CMAC algorithm.public static MacAttributes fromDukptIso9797Algorithm1(MacAlgorithmDukpt dukptIso9797Algorithm1)
dukptIso9797Algorithm1() initialized to the given value.
Parameters that are required for MAC generation or verification using DUKPT ISO 9797 algorithm1.
dukptIso9797Algorithm1 - Parameters that are required for MAC generation or verification using DUKPT ISO 9797 algorithm1.public static MacAttributes fromDukptIso9797Algorithm1(Consumer<MacAlgorithmDukpt.Builder> dukptIso9797Algorithm1)
dukptIso9797Algorithm1() initialized to the given value.
Parameters that are required for MAC generation or verification using DUKPT ISO 9797 algorithm1.
dukptIso9797Algorithm1 - Parameters that are required for MAC generation or verification using DUKPT ISO 9797 algorithm1.public static MacAttributes fromDukptIso9797Algorithm3(MacAlgorithmDukpt dukptIso9797Algorithm3)
dukptIso9797Algorithm3() initialized to the given value.
Parameters that are required for MAC generation or verification using DUKPT ISO 9797 algorithm2.
dukptIso9797Algorithm3 - Parameters that are required for MAC generation or verification using DUKPT ISO 9797 algorithm2.public static MacAttributes fromDukptIso9797Algorithm3(Consumer<MacAlgorithmDukpt.Builder> dukptIso9797Algorithm3)
dukptIso9797Algorithm3() initialized to the given value.
Parameters that are required for MAC generation or verification using DUKPT ISO 9797 algorithm2.
dukptIso9797Algorithm3 - Parameters that are required for MAC generation or verification using DUKPT ISO 9797 algorithm2.public static MacAttributes fromEmvMac(MacAlgorithmEmv emvMac)
emvMac() initialized to the given value.
Parameters that are required for MAC generation or verification using EMV MAC algorithm.
emvMac - Parameters that are required for MAC generation or verification using EMV MAC algorithm.public static MacAttributes fromEmvMac(Consumer<MacAlgorithmEmv.Builder> emvMac)
emvMac() initialized to the given value.
Parameters that are required for MAC generation or verification using EMV MAC algorithm.
emvMac - Parameters that are required for MAC generation or verification using EMV MAC algorithm.public MacAttributes.Type type()
MacAttributes.Type.UNKNOWN_TO_SDK_VERSION if the
service returned a member that is only known to a newer SDK version.
When this class is created directly in your code, this will be MacAttributes.Type.UNKNOWN_TO_SDK_VERSION if zero
members are set, and null if more than one member is set.Copyright © 2023. All rights reserved.