Class PowerAuthEncryptionHttpHeader
java.lang.Object
io.getlime.security.powerauth.http.PowerAuthHttpHeader
io.getlime.security.powerauth.http.PowerAuthEncryptionHttpHeader
Class representing the PowerAuth HTTP encryption header "X-PowerAuth-Encryption".
- Author:
- Roman Strobl, roman.strobl@wultra.com
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classClass with keys used in the underlying map. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of the PowerAuth encryption header, "X-PowerAuth-Encryption".Fields inherited from class io.getlime.security.powerauth.http.PowerAuthHttpHeader
POWERAUTH_PREFIX -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.PowerAuthEncryptionHttpHeader(String applicationKey, String version) Constructor for application scope.PowerAuthEncryptionHttpHeader(String applicationKey, String activationId, String version) Constructor for activation scope. -
Method Summary
Modifier and TypeMethodDescriptionGenerate a valid PowerAuth Encryption header based on provided parameters.Create PowerAuth encryption HTTP header model object from provided string.Get the activation ID.Get the application key.Get PowerAuth protocol version.Methods inherited from class io.getlime.security.powerauth.http.PowerAuthHttpHeader
headerField, parseHttpHeader
-
Field Details
-
HEADER_NAME
Name of the PowerAuth encryption header, "X-PowerAuth-Encryption".- See Also:
-
-
Constructor Details
-
PowerAuthEncryptionHttpHeader
public PowerAuthEncryptionHttpHeader()Default constructor. -
PowerAuthEncryptionHttpHeader
Constructor for application scope.- Parameters:
applicationKey- Application key.version- Version.
-
PowerAuthEncryptionHttpHeader
Constructor for activation scope.- Parameters:
applicationKey- Application key.activationId- Activation IDversion- Version.
-
-
Method Details
-
fromValue
Create PowerAuth encryption HTTP header model object from provided string.- Specified by:
fromValuein classPowerAuthHttpHeader- Parameters:
headerValue- PowerAuth encryption HTTP header as String.- Returns:
- PowerAuth Encryption HTTP header.
-
buildHttpHeader
Generate a valid PowerAuth Encryption header based on provided parameters.- Specified by:
buildHttpHeaderin classPowerAuthHttpHeader- Returns:
- Value to be used in
X-PowerAuth-EncryptionHTTP header.
-
getApplicationKey
Get the application key.- Returns:
- Application key.
-
getActivationId
Get the activation ID.- Returns:
- Activation ID.
-
getVersion
Get PowerAuth protocol version.- Returns:
- PowerAuth protocol version.
-