Class HerodotusToOAuth2AuthorizationConsentConverter

java.lang.Object
cn.herodotus.engine.oauth2.data.jpa.converter.HerodotusToOAuth2AuthorizationConsentConverter
All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<HerodotusAuthorizationConsent,org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsent>

public class HerodotusToOAuth2AuthorizationConsentConverter extends Object implements org.springframework.core.convert.converter.Converter<HerodotusAuthorizationConsent,org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsent>

Description: HerodotusAuthorizationConsent 转 OAuth2AuthorizationConsent 转换器

Author:
: gengwei.zheng
Date:
: 2023/5/21 21:03
  • Constructor Details

    • HerodotusToOAuth2AuthorizationConsentConverter

      public HerodotusToOAuth2AuthorizationConsentConverter(org.springframework.security.oauth2.server.authorization.client.RegisteredClientRepository registeredClientRepository)
  • Method Details

    • convert

      public org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsent convert(HerodotusAuthorizationConsent authorizationConsent)
      Specified by:
      convert in interface org.springframework.core.convert.converter.Converter<HerodotusAuthorizationConsent,org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsent>