Class PowerAuthTokenHttpHeader
java.lang.Object
io.getlime.security.powerauth.http.PowerAuthHttpHeader
io.getlime.security.powerauth.http.PowerAuthTokenHttpHeader
Class representing the PowerAuth HTTP Token header "X-PowerAuth-Token".
- 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 token header, "X-PowerAuth-Token".Fields inherited from class io.getlime.security.powerauth.http.PowerAuthHttpHeader
POWERAUTH_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn a string with the HTTP header value.Create PowerAuth token HTTP header model object from provided string.getNonce()Get nonce.Get timestamp.Get token digest.Get token identifier.Get version.Methods inherited from class io.getlime.security.powerauth.http.PowerAuthHttpHeader
headerField, parseHttpHeader
-
Field Details
-
HEADER_NAME
Name of the PowerAuth token header, "X-PowerAuth-Token".- See Also:
-
-
Constructor Details
-
PowerAuthTokenHttpHeader
public PowerAuthTokenHttpHeader()Default constructor. -
PowerAuthTokenHttpHeader
public PowerAuthTokenHttpHeader(String tokenId, String tokenDigest, String nonce, String timestamp, String version) Constructor with all required class attributes.- Parameters:
tokenId- Token ID.tokenDigest- Token digest.nonce- Nonce.timestamp- Timestamp.version- Version.
-
-
Method Details
-
fromValue
Create PowerAuth token HTTP header model object from provided string.- Specified by:
fromValuein classPowerAuthHttpHeader- Parameters:
headerValue- HTTP header with PowerAuth token.- Returns:
- PowerAuth token HTTP header.
-
buildHttpHeader
Description copied from class:PowerAuthHttpHeaderReturn a string with the HTTP header value.- Specified by:
buildHttpHeaderin classPowerAuthHttpHeader- Returns:
- HTTP header value.
-
getTokenId
Get token identifier.- Returns:
- Token identifier.
-
getTokenDigest
Get token digest.- Returns:
- Token digest.
-
getNonce
Get nonce.- Returns:
- Nonce.
-
getTimestamp
Get timestamp.- Returns:
- Timestamp.
-
getVersion
Get version.- Returns:
- Version.
-