Class SignatureConfiguration
java.lang.Object
io.getlime.security.powerauth.crypto.lib.config.SignatureConfiguration
- Direct Known Subclasses:
Base64SignatureConfiguration,DecimalSignatureConfiguration
Class that holds information about the signature configuration.
- Author:
- Petr Dvorak, petr@wultra.com
-
Constructor Summary
ConstructorsConstructorDescriptionSignatureConfiguration(PowerAuthSignatureFormat signatureFormat) Constructor with the signature format. -
Method Summary
Modifier and TypeMethodDescriptionstatic Base64SignatureConfigurationbase64()Construct new Base64 signature.decimal()Construct new decimal signature of default length.Construct new decimal signature of given length.static SignatureConfigurationforFormat(PowerAuthSignatureFormat format) Convert PowerAuth signature format to signature configuration.Get signature format.
-
Constructor Details
-
SignatureConfiguration
Constructor with the signature format.- Parameters:
signatureFormat- Signature format.
-
-
Method Details
-
getSignatureFormat
Get signature format.- Returns:
- Signature format.
-
forFormat
public static SignatureConfiguration forFormat(PowerAuthSignatureFormat format) throws CryptoProviderException Convert PowerAuth signature format to signature configuration.- Parameters:
format- PowerAuth signature format.- Returns:
- Signature configuration.
- Throws:
CryptoProviderException- In case of invalid signature format.
-
decimal
Construct new decimal signature of default length.- Returns:
- Decimal signature with default length.
-
decimal
Construct new decimal signature of given length.- Parameters:
length- Length.- Returns:
- Decimal signature with given length.
-
base64
Construct new Base64 signature.- Returns:
- Base64 signature.
-