Class PowerAuthSignatureHttpHeader
java.lang.Object
io.getlime.security.powerauth.http.PowerAuthHttpHeader
io.getlime.security.powerauth.http.PowerAuthSignatureHttpHeader
Class representing the PowerAuth HTTP Authorization header "X-PowerAuth-Authorization".
- Author:
- Petr Dvorak, petr@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 authorization header, "X-PowerAuth-Authorization".Fields inherited from class io.getlime.security.powerauth.http.PowerAuthHttpHeader
POWERAUTH_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGenerate a valid PowerAuth Authorization header based on provided parameters.Create PowerAuth authorization HTTP header model object from provided string.Get activation ID.Get application key.getNonce()Get nonce.Get signature.Get signature type.Get version.Methods inherited from class io.getlime.security.powerauth.http.PowerAuthHttpHeader
headerField, parseHttpHeader
-
Field Details
-
HEADER_NAME
Name of the PowerAuth authorization header, "X-PowerAuth-Authorization".- See Also:
-
-
Constructor Details
-
PowerAuthSignatureHttpHeader
public PowerAuthSignatureHttpHeader()Default constructor. -
PowerAuthSignatureHttpHeader
public PowerAuthSignatureHttpHeader(String activationId, String applicationKey, String signature, String signatureType, String nonce, String version) Constructor with all required parameters.- Parameters:
activationId- Activation ID.applicationKey- Application key.signature- PowerAuth signature value.signatureType- PowerAuth signature type.nonce- Nonce.version- Version.
-
-
Method Details
-
fromValue
Create PowerAuth authorization HTTP header model object from provided string.- Specified by:
fromValuein classPowerAuthHttpHeader- Parameters:
headerValue- HTTP header with PowerAuth authorization.- Returns:
- PowerAuth authorization HTTP header.
-
buildHttpHeader
Generate a valid PowerAuth Authorization header based on provided parameters.- Specified by:
buildHttpHeaderin classPowerAuthHttpHeader- Returns:
- Value to be used in
X-PowerAuth-AuthorizationHTTP header.
-
getActivationId
Get activation ID.- Returns:
- Activation ID.
-
getApplicationKey
Get application key.- Returns:
- Application key.
-
getSignature
Get signature.- Returns:
- Signature.
-
getSignatureType
Get signature type.- Returns:
- Signature type.
-
getNonce
Get nonce.- Returns:
- Nonce.
-
getVersion
Get version.- Returns:
- Version.
-