style: fix lint (CI)

This commit is contained in:
usbharu 2024-08-26 06:31:51 +00:00 committed by github-actions[bot]
parent 3b8156e16d
commit 623e56bb91
1 changed files with 4 additions and 4 deletions

View File

@ -132,7 +132,6 @@ class SecurityConfig {
@Bean @Bean
fun loadJwkSource(jwkConfig: JwkConfig, applicationConfig: ApplicationConfig): JWKSource<SecurityContext> { fun loadJwkSource(jwkConfig: JwkConfig, applicationConfig: ApplicationConfig): JWKSource<SecurityContext> {
if (jwkConfig.keyId == null) { if (jwkConfig.keyId == null) {
logger.error("hideout.security.jwt.keyId is null.") logger.error("hideout.security.jwt.keyId is null.")
} }
@ -150,7 +149,8 @@ class SecurityConfig {
jwkConfig.keyId = UUID.randomUUID().toString() jwkConfig.keyId = UUID.randomUUID().toString()
jwkConfig.publicKey = RsaUtil.encodeRsaPublicKey(generateKeyPair.public as RSAPublicKey) jwkConfig.publicKey = RsaUtil.encodeRsaPublicKey(generateKeyPair.public as RSAPublicKey)
jwkConfig.privateKey = RsaUtil.encodeRsaPrivateKey(generateKeyPair.private as RSAPrivateKey) jwkConfig.privateKey = RsaUtil.encodeRsaPrivateKey(generateKeyPair.private as RSAPrivateKey)
logger.error(""" logger.error(
"""
|============== |==============
|============== |==============
| |
@ -165,10 +165,10 @@ class SecurityConfig {
| |
|============== |==============
|============== |==============
""".trimMargin()) """.trimMargin()
)
} }
val rsaKey = RSAKey.Builder(RsaUtil.decodeRsaPublicKey(jwkConfig.publicKey!!)) val rsaKey = RSAKey.Builder(RsaUtil.decodeRsaPublicKey(jwkConfig.publicKey!!))
.privateKey(RsaUtil.decodeRsaPrivateKey(jwkConfig.privateKey!!)).keyID(jwkConfig.keyId).build() .privateKey(RsaUtil.decodeRsaPrivateKey(jwkConfig.privateKey!!)).keyID(jwkConfig.keyId).build()
return ImmutableJWKSet(JWKSet(rsaKey)) return ImmutableJWKSet(JWKSet(rsaKey))