public final class ModelEncryptionSupport extends Object
public static final String SEP
public static String encryptClient(Client client, Key secretKey) throws SecurityException
SecurityException
public static String encryptClient(Client client, Key secretKey, KeyProperties props) throws SecurityException
SecurityException
public static String encryptAccessToken(ServerAccessToken token, Key secretKey) throws SecurityException
SecurityException
public static String encryptAccessToken(ServerAccessToken token, Key secretKey, KeyProperties props) throws SecurityException
SecurityException
public static String encryptRefreshToken(RefreshToken token, Key secretKey) throws SecurityException
SecurityException
public static String encryptRefreshToken(RefreshToken token, Key secretKey, KeyProperties props) throws SecurityException
SecurityException
public static String encryptCodeGrant(ServerAuthorizationCodeGrant grant, Key secretKey) throws SecurityException
SecurityException
public static String encryptCodeGrant(ServerAuthorizationCodeGrant grant, Key secretKey, KeyProperties props) throws SecurityException
SecurityException
public static Client decryptClient(String encodedSequence, String encodedSecretKey) throws SecurityException
SecurityException
public static Client decryptClient(String encodedSequence, String encodedSecretKey, KeyProperties props) throws SecurityException
SecurityException
public static Client decryptClient(String encodedSequence, Key secretKey) throws SecurityException
SecurityException
public static Client decryptClient(String encodedData, Key secretKey, KeyProperties props) throws SecurityException
SecurityException
public static ServerAccessToken decryptAccessToken(OAuthDataProvider provider, String encodedToken, String encodedSecretKey) throws SecurityException
SecurityException
public static ServerAccessToken decryptAccessToken(OAuthDataProvider provider, String encodedToken, String encodedSecretKey, KeyProperties props) throws SecurityException
SecurityException
public static ServerAccessToken decryptAccessToken(OAuthDataProvider provider, String encodedToken, Key secretKey) throws SecurityException
SecurityException
public static ServerAccessToken decryptAccessToken(OAuthDataProvider provider, String encodedData, Key secretKey, KeyProperties props) throws SecurityException
SecurityException
public static RefreshToken decryptRefreshToken(OAuthDataProvider provider, String encodedToken, String encodedSecretKey) throws SecurityException
SecurityException
public static RefreshToken decryptRefreshToken(OAuthDataProvider provider, String encodedToken, String encodedSecretKey, KeyProperties props) throws SecurityException
SecurityException
public static RefreshToken decryptRefreshToken(OAuthDataProvider provider, String encodedToken, Key key) throws SecurityException
SecurityException
public static RefreshToken decryptRefreshToken(OAuthDataProvider provider, String encodedData, Key key, KeyProperties props) throws SecurityException
SecurityException
public static ServerAuthorizationCodeGrant decryptCodeGrant(OAuthDataProvider provider, String encodedToken, String encodedSecretKey) throws SecurityException
SecurityException
public static ServerAuthorizationCodeGrant decryptCodeGrant(OAuthDataProvider provider, String encodedToken, String encodedSecretKey, KeyProperties props) throws SecurityException
SecurityException
public static ServerAuthorizationCodeGrant decryptCodeGrant(OAuthDataProvider provider, String encodedToken, Key key) throws SecurityException
SecurityException
public static ServerAuthorizationCodeGrant decryptCodeGrant(OAuthDataProvider provider, String encodedData, Key key, KeyProperties props) throws SecurityException
SecurityException
public static ServerAccessToken recreateAccessToken(OAuthDataProvider provider, String newTokenKey, String decryptedSequence) throws SecurityException
SecurityException
public static RefreshToken recreateRefreshToken(OAuthDataProvider provider, String newTokenKey, String decryptedSequence) throws SecurityException
SecurityException
public static ServerAuthorizationCodeGrant recreateCodeGrant(OAuthDataProvider provider, String decryptedSequence) throws SecurityException
SecurityException
public static Client recreateClient(String sequence) throws SecurityException
SecurityException
Apache CXF