All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.feingto.cloud.domain.oauth2.converters.OAuth2RefreshTokenPersistenceConverters Maven / Gradle / Ivy

There is a newer version: 2.3.5.RELEASE
Show newest version
package com.feingto.cloud.domain.oauth2.converters;

import com.feingto.cloud.kit.json.JSON;
import org.springframework.security.oauth2.common.OAuth2RefreshToken;

import javax.persistence.AttributeConverter;

/**
 * OAuth2RefreshToken 持久层转换
 *
 * @author longfei
 */
public class OAuth2RefreshTokenPersistenceConverters implements AttributeConverter {
    @Override
    public String convertToDatabaseColumn(OAuth2RefreshToken attribute) {
        return JSON.obj2json(attribute);
    }

    @Override
    public OAuth2RefreshToken convertToEntityAttribute(String data) {
        return JSON.json2pojo(data, OAuth2RefreshToken.class);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy