Class ModelEncryptionSupport
- java.lang.Object
-
- org.apache.cxf.rs.security.oauth2.utils.crypto.ModelEncryptionSupport
-
public final class ModelEncryptionSupport extends Object
Default Model Encryption helpers
-
-
Method Summary
-
-
-
Field Detail
-
SEP
public static final String SEP
- See Also:
- Constant Field Values
-
-
Method Detail
-
encryptClient
public static String encryptClient(Client client, Key secretKey) throws SecurityException
- Throws:
SecurityException
-
encryptClient
public static String encryptClient(Client client, Key secretKey, KeyProperties props) throws SecurityException
- Throws:
SecurityException
-
encryptAccessToken
public static String encryptAccessToken(ServerAccessToken token, Key secretKey) throws SecurityException
- Throws:
SecurityException
-
encryptAccessToken
public static String encryptAccessToken(ServerAccessToken token, Key secretKey, KeyProperties props) throws SecurityException
- Throws:
SecurityException
-
encryptRefreshToken
public static String encryptRefreshToken(RefreshToken token, Key secretKey) throws SecurityException
- Throws:
SecurityException
-
encryptRefreshToken
public static String encryptRefreshToken(RefreshToken token, Key secretKey, KeyProperties props) throws SecurityException
- Throws:
SecurityException
-
encryptCodeGrant
public static String encryptCodeGrant(ServerAuthorizationCodeGrant grant, Key secretKey) throws SecurityException
- Throws:
SecurityException
-
encryptCodeGrant
public static String encryptCodeGrant(ServerAuthorizationCodeGrant grant, Key secretKey, KeyProperties props) throws SecurityException
- Throws:
SecurityException
-
decryptClient
public static Client decryptClient(String encodedSequence, String encodedSecretKey) throws SecurityException
- Throws:
SecurityException
-
decryptClient
public static Client decryptClient(String encodedSequence, String encodedSecretKey, KeyProperties props) throws SecurityException
- Throws:
SecurityException
-
decryptClient
public static Client decryptClient(String encodedSequence, Key secretKey) throws SecurityException
- Throws:
SecurityException
-
decryptClient
public static Client decryptClient(String encodedData, Key secretKey, KeyProperties props) throws SecurityException
- Throws:
SecurityException
-
decryptAccessToken
public static ServerAccessToken decryptAccessToken(OAuthDataProvider provider, String encodedToken, String encodedSecretKey) throws SecurityException
- Throws:
SecurityException
-
decryptAccessToken
public static ServerAccessToken decryptAccessToken(OAuthDataProvider provider, String encodedToken, String encodedSecretKey, KeyProperties props) throws SecurityException
- Throws:
SecurityException
-
decryptAccessToken
public static ServerAccessToken decryptAccessToken(OAuthDataProvider provider, String encodedToken, Key secretKey) throws SecurityException
- Throws:
SecurityException
-
decryptAccessToken
public static ServerAccessToken decryptAccessToken(OAuthDataProvider provider, String encodedData, Key secretKey, KeyProperties props) throws SecurityException
- Throws:
SecurityException
-
decryptRefreshToken
public static RefreshToken decryptRefreshToken(OAuthDataProvider provider, String encodedToken, String encodedSecretKey) throws SecurityException
- Throws:
SecurityException
-
decryptRefreshToken
public static RefreshToken decryptRefreshToken(OAuthDataProvider provider, String encodedToken, String encodedSecretKey, KeyProperties props) throws SecurityException
- Throws:
SecurityException
-
decryptRefreshToken
public static RefreshToken decryptRefreshToken(OAuthDataProvider provider, String encodedToken, Key key) throws SecurityException
- Throws:
SecurityException
-
decryptRefreshToken
public static RefreshToken decryptRefreshToken(OAuthDataProvider provider, String encodedData, Key key, KeyProperties props) throws SecurityException
- Throws:
SecurityException
-
decryptCodeGrant
public static ServerAuthorizationCodeGrant decryptCodeGrant(OAuthDataProvider provider, String encodedToken, String encodedSecretKey) throws SecurityException
- Throws:
SecurityException
-
decryptCodeGrant
public static ServerAuthorizationCodeGrant decryptCodeGrant(OAuthDataProvider provider, String encodedToken, String encodedSecretKey, KeyProperties props) throws SecurityException
- Throws:
SecurityException
-
decryptCodeGrant
public static ServerAuthorizationCodeGrant decryptCodeGrant(OAuthDataProvider provider, String encodedToken, Key key) throws SecurityException
- Throws:
SecurityException
-
decryptCodeGrant
public static ServerAuthorizationCodeGrant decryptCodeGrant(OAuthDataProvider provider, String encodedData, Key key, KeyProperties props) throws SecurityException
- Throws:
SecurityException
-
recreateAccessToken
public static ServerAccessToken recreateAccessToken(OAuthDataProvider provider, String newTokenKey, String decryptedSequence) throws SecurityException
- Throws:
SecurityException
-
recreateRefreshToken
public static RefreshToken recreateRefreshToken(OAuthDataProvider provider, String newTokenKey, String decryptedSequence) throws SecurityException
- Throws:
SecurityException
-
recreateCodeGrant
public static ServerAuthorizationCodeGrant recreateCodeGrant(OAuthDataProvider provider, String decryptedSequence) throws SecurityException
- Throws:
SecurityException
-
recreateClient
public static Client recreateClient(String sequence) throws SecurityException
- Throws:
SecurityException
-
-