public abstract class PowerAuthAuthenticationProviderBase extends Object
| Constructor and Description |
|---|
PowerAuthAuthenticationProviderBase() |
| Modifier and Type | Method and Description |
|---|---|
PowerAuthApiAuthentication |
validateRequestSignature(javax.servlet.http.HttpServletRequest servletRequest,
String requestUriIdentifier,
String httpAuthorizationHeader)
The same as {
validateRequestSignature(HttpServletRequest, String, String, List) but uses default accepted signature type (2FA or 3FA). |
PowerAuthApiAuthentication |
validateRequestSignature(javax.servlet.http.HttpServletRequest servletRequest,
String requestUriIdentifier,
String httpAuthorizationHeader,
List<PowerAuthSignatureTypes> allowedSignatureTypes)
Validate a request signature, make sure only supported signature types are used.
|
PowerAuthApiAuthentication |
validateRequestSignature(String httpMethod,
byte[] httpBody,
String requestUriIdentifier,
String httpAuthorizationHeader)
The same as {
validateRequestSignature(String, byte[], String, String, List) but uses default accepted signature type (2FA or 3FA). |
abstract PowerAuthApiAuthentication |
validateRequestSignature(String httpMethod,
byte[] httpBody,
String requestUriIdentifier,
String httpAuthorizationHeader,
List<PowerAuthSignatureTypes> allowedSignatureTypes)
Validate the signature from the PowerAuth 2.0 HTTP header against the provided HTTP method, request body and URI identifier.
|
public abstract PowerAuthApiAuthentication validateRequestSignature(String httpMethod, byte[] httpBody, String requestUriIdentifier, String httpAuthorizationHeader, List<PowerAuthSignatureTypes> allowedSignatureTypes) throws PowerAuthAuthenticationException
httpMethod - HTTP method (GET, POST, ...)httpBody - Body of the HTTP request.requestUriIdentifier - Request URI identifier.httpAuthorizationHeader - PowerAuth 2.0 HTTP authorization header.allowedSignatureTypes - Allowed types of the signature.PowerAuthAuthenticationException - In case authorization fails, exception is raised.public PowerAuthApiAuthentication validateRequestSignature(String httpMethod, byte[] httpBody, String requestUriIdentifier, String httpAuthorizationHeader) throws PowerAuthAuthenticationException
validateRequestSignature(String, byte[], String, String, List) but uses default accepted signature type (2FA or 3FA).httpMethod - HTTP method (GET, POST, ...)httpBody - Request bodyrequestUriIdentifier - Request URI identifier.httpAuthorizationHeader - PowerAuth 2.0 HTTP authorization header.PowerAuthAuthenticationException - In case authorization fails, exception is raised.public PowerAuthApiAuthentication validateRequestSignature(javax.servlet.http.HttpServletRequest servletRequest, String requestUriIdentifier, String httpAuthorizationHeader, List<PowerAuthSignatureTypes> allowedSignatureTypes) throws PowerAuthAuthenticationException
servletRequest - HTTPServletRequest with signed data.requestUriIdentifier - Request URI identifier.httpAuthorizationHeader - PowerAuth 2.0 HTTP authorization header.allowedSignatureTypes - Allowed types of signatures.PowerAuthAuthenticationException - In case authorization fails, exception is raised.public PowerAuthApiAuthentication validateRequestSignature(javax.servlet.http.HttpServletRequest servletRequest, String requestUriIdentifier, String httpAuthorizationHeader) throws PowerAuthAuthenticationException
validateRequestSignature(HttpServletRequest, String, String, List) but uses default accepted signature type (2FA or 3FA).servletRequest - HTTPServletRequest with signed data.requestUriIdentifier - Request URI identifier.httpAuthorizationHeader - PowerAuth 2.0 HTTP authorization header.PowerAuthAuthenticationException - In case authorization fails, exception is raised.Copyright © 2016–2017 Lime - HighTech Solutions Inc.. All rights reserved.