@Component public class PowerAuthAuthenticationProvider extends PowerAuthAuthenticationProviderBase
| Constructor and Description |
|---|
PowerAuthAuthenticationProvider() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.security.core.Authentication |
authenticate(org.springframework.security.core.Authentication authentication) |
void |
setApplicationConfiguration(PowerAuthApplicationConfiguration applicationConfiguration) |
void |
setPowerAuthClient(io.getlime.security.powerauth.soap.spring.client.PowerAuthServiceClient powerAuthClient) |
PowerAuthApiAuthentication |
validateRequestSignature(String httpMethod,
byte[] httpBody,
String requestUriIdentifier,
String httpAuthorizationHeader,
List<io.getlime.security.powerauth.crypto.lib.enums.PowerAuthSignatureTypes> allowedSignatureTypes,
Integer forcedSignatureVersion)
Validate the signature from the PowerAuth HTTP header against the provided HTTP method, request body and URI identifier.
|
PowerAuthApiAuthentication |
validateToken(String tokenHeader,
List<io.getlime.security.powerauth.crypto.lib.enums.PowerAuthSignatureTypes> allowedSignatureTypes) |
extractRequestBodyBytes, validateRequestSignature, validateRequestSignature, validateRequestSignature, validateRequestSignature, validateToken@Autowired public void setPowerAuthClient(io.getlime.security.powerauth.soap.spring.client.PowerAuthServiceClient powerAuthClient)
@Autowired(required=false) public void setApplicationConfiguration(PowerAuthApplicationConfiguration applicationConfiguration)
public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication)
throws org.springframework.security.core.AuthenticationException
org.springframework.security.core.AuthenticationExceptionpublic PowerAuthApiAuthentication validateRequestSignature(String httpMethod, byte[] httpBody, String requestUriIdentifier, String httpAuthorizationHeader, List<io.getlime.security.powerauth.crypto.lib.enums.PowerAuthSignatureTypes> allowedSignatureTypes, @Nullable Integer forcedSignatureVersion) throws PowerAuthAuthenticationException
validateRequestSignature in class PowerAuthAuthenticationProviderBasehttpMethod - HTTP method (GET, POST, ...)httpBody - Body of the HTTP request.requestUriIdentifier - Request URI identifier.httpAuthorizationHeader - PowerAuth HTTP authorization header.allowedSignatureTypes - Allowed types of the signature.forcedSignatureVersion - Forced signature version, optional parameter used during upgrade.PowerAuthAuthenticationException - In case authorization fails, exception is raised.public PowerAuthApiAuthentication validateToken(String tokenHeader, List<io.getlime.security.powerauth.crypto.lib.enums.PowerAuthSignatureTypes> allowedSignatureTypes) throws PowerAuthAuthenticationException
validateToken in class PowerAuthAuthenticationProviderBasePowerAuthAuthenticationExceptionCopyright © 2017–2020 Wultra s.r.o.. All rights reserved.