@Configuration
@Import(value={TokenAuthenticationConfiguration.class,EncryptionConfiguration.class,PopConfiguration.class,JacksonConfiguration.class})
public class SecretServerConfiguration
extends Object
| Constructor and Description |
|---|
SecretServerConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
StaticKeyEncryptionFactory |
StaticKeyEncryptionFactory(de.adorsys.sts.cryptoutils.ObjectMapperSPI objectMapper) |
TokenExchangeClaimsService |
tokenExchangeSecretClaimsService(Integer secretLengthInBits,
Boolean isEncryptionEnabled,
String encryptionAlgorithm,
String encryptionMethod,
String encryptionKey,
StaticKeyEncryptionFactory staticKeyEncryptionFactory,
SecretRepository secretRepository,
de.adorsys.sts.resourceserver.service.EncryptionService encryptionService,
de.adorsys.sts.resourceserver.service.ResourceServerService resourceServerService) |
TokenExchangeService |
tokenExchangeService(TokenExchangeClaimsService tokenExchangeClaimsService,
KeyManagementService keyManagementService,
BearerTokenValidator bearerTokenValidator) |
@Bean public TokenExchangeService tokenExchangeService(TokenExchangeClaimsService tokenExchangeClaimsService, KeyManagementService keyManagementService, BearerTokenValidator bearerTokenValidator)
@Bean public StaticKeyEncryptionFactory StaticKeyEncryptionFactory(de.adorsys.sts.cryptoutils.ObjectMapperSPI objectMapper)
@Bean public TokenExchangeClaimsService tokenExchangeSecretClaimsService(@Value(value="${sts.secret-server.secret-length:256}") Integer secretLengthInBits, @Value(value="${sts.secret-server.encryption.enabled:false}") Boolean isEncryptionEnabled, @Value(value="${sts.secret-server.encryption.algorithm:A256GCMKW}") String encryptionAlgorithm, @Value(value="${sts.secret-server.encryption.encryption-method:A256GCM}") String encryptionMethod, @Value(value="${sts.secret-server.encryption.key:}") String encryptionKey, StaticKeyEncryptionFactory staticKeyEncryptionFactory, SecretRepository secretRepository, de.adorsys.sts.resourceserver.service.EncryptionService encryptionService, de.adorsys.sts.resourceserver.service.ResourceServerService resourceServerService)
Copyright © 2019. All rights reserved.