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

org.springframework.security.oauth2.provider.token.store.redis.StandardStringSerializationStrategy Maven / Gradle / Ivy

There is a newer version: 2.5.2.RELEASE
Show newest version
package org.springframework.security.oauth2.provider.token.store.redis;

import org.springframework.data.redis.serializer.StringRedisSerializer;

/**
 * Serializes Strings using {@link StringRedisSerializer}
 *
 * 

* @deprecated See the OAuth 2.0 Migration Guide for Spring Security 5. * * @author efenderbosch * */ @Deprecated public abstract class StandardStringSerializationStrategy extends BaseRedisTokenStoreSerializationStrategy { private static final StringRedisSerializer STRING_SERIALIZER = new StringRedisSerializer(); @Override protected String deserializeStringInternal(byte[] bytes) { return STRING_SERIALIZER.deserialize(bytes); } @Override protected byte[] serializeInternal(String string) { return STRING_SERIALIZER.serialize(string); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy