Class BasicRequestAuthorizationStrategy
java.lang.Object
org.qubership.atp.itf.lite.backend.components.auth.AbstractAuthorizationStrategy
org.qubership.atp.itf.lite.backend.components.auth.BasicRequestAuthorizationStrategy
- All Implemented Interfaces:
RequestAuthorizationStrategy
@Component
public class BasicRequestAuthorizationStrategy
extends AbstractAuthorizationStrategy
implements RequestAuthorizationStrategy
-
Field Summary
Fields inherited from class org.qubership.atp.itf.lite.backend.components.auth.AbstractAuthorizationStrategy
AUTH_HEADER_KEY, CALCULATED_VALUE, encryptionService, TO_ENCRYPT_FLAG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddecodeParameters(AuthorizationSaveRequest authorization) Decode parameters.voiddecryptParameters(AuthorizationSaveRequest authorization) voidencryptParameters(AuthorizationSaveRequest authorization) generateAuthorizationHeader(RequestAuthorization authorization) Generates a header to be displayed on the UI.parseAuthorizationFromMap(Map<String, String> authorizationInfo) performAuthorization(UUID projectId, String url, org.springframework.util.MultiValueMap<String, String> map) Methods inherited from class org.qubership.atp.itf.lite.backend.components.auth.AbstractAuthorizationStrategy
decodeParameter, decryptParameter, encryptParameterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.qubership.atp.itf.lite.backend.components.auth.RequestAuthorizationStrategy
generateAuthorizationParams
-
Constructor Details
-
BasicRequestAuthorizationStrategy
-
-
Method Details
-
getAuthorizationToken
public AuthorizationStrategyResponse getAuthorizationToken(AuthorizationStrategyRequest request) throws org.qubership.atp.crypt.exception.AtpDecryptException - Specified by:
getAuthorizationTokenin interfaceRequestAuthorizationStrategy- Throws:
org.qubership.atp.crypt.exception.AtpDecryptException
-
decodeParameters
Decode parameters. -
decryptParameters
- Specified by:
decryptParametersin interfaceRequestAuthorizationStrategy
-
encryptParameters
- Specified by:
encryptParametersin interfaceRequestAuthorizationStrategy
-
performAuthorization
public OAuth2AuthrizationResponse performAuthorization(UUID projectId, String url, org.springframework.util.MultiValueMap<String, String> map) - Specified by:
performAuthorizationin interfaceRequestAuthorizationStrategy
-
getAuthorizationType
- Specified by:
getAuthorizationTypein interfaceRequestAuthorizationStrategy
-
parseAuthorizationFromMap
- Specified by:
parseAuthorizationFromMapin interfaceRequestAuthorizationStrategy
-
generateAuthorizationHeader
Description copied from interface:RequestAuthorizationStrategyGenerates a header to be displayed on the UI.- Specified by:
generateAuthorizationHeaderin interfaceRequestAuthorizationStrategy- Parameters:
authorization- request authorization- Returns:
RequestHeadergenerated request header
-