Class ModelEncryptionSupport
java.lang.Object
org.apache.cxf.rs.security.oauth2.utils.crypto.ModelEncryptionSupport
Default Model Encryption helpers
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ServerAccessTokendecryptAccessToken(OAuthDataProvider provider, String encodedToken, String encodedSecretKey) static ServerAccessTokendecryptAccessToken(OAuthDataProvider provider, String encodedToken, String encodedSecretKey, KeyProperties props) static ServerAccessTokendecryptAccessToken(OAuthDataProvider provider, String encodedToken, Key secretKey) static ServerAccessTokendecryptAccessToken(OAuthDataProvider provider, String encodedData, Key secretKey, KeyProperties props) static ClientdecryptClient(String encodedSequence, String encodedSecretKey) static ClientdecryptClient(String encodedSequence, String encodedSecretKey, KeyProperties props) static ClientdecryptClient(String encodedSequence, Key secretKey) static ClientdecryptClient(String encodedData, Key secretKey, KeyProperties props) static ServerAuthorizationCodeGrantdecryptCodeGrant(OAuthDataProvider provider, String encodedToken, String encodedSecretKey) static ServerAuthorizationCodeGrantdecryptCodeGrant(OAuthDataProvider provider, String encodedToken, String encodedSecretKey, KeyProperties props) static ServerAuthorizationCodeGrantdecryptCodeGrant(OAuthDataProvider provider, String encodedToken, Key key) static ServerAuthorizationCodeGrantdecryptCodeGrant(OAuthDataProvider provider, String encodedData, Key key, KeyProperties props) static RefreshTokendecryptRefreshToken(OAuthDataProvider provider, String encodedToken, String encodedSecretKey) static RefreshTokendecryptRefreshToken(OAuthDataProvider provider, String encodedToken, String encodedSecretKey, KeyProperties props) static RefreshTokendecryptRefreshToken(OAuthDataProvider provider, String encodedToken, Key key) static RefreshTokendecryptRefreshToken(OAuthDataProvider provider, String encodedData, Key key, KeyProperties props) static StringencryptAccessToken(ServerAccessToken token, Key secretKey) static StringencryptAccessToken(ServerAccessToken token, Key secretKey, KeyProperties props) static StringencryptClient(Client client, Key secretKey) static StringencryptClient(Client client, Key secretKey, KeyProperties props) static StringencryptCodeGrant(ServerAuthorizationCodeGrant grant, Key secretKey) static StringencryptCodeGrant(ServerAuthorizationCodeGrant grant, Key secretKey, KeyProperties props) static StringencryptRefreshToken(RefreshToken token, Key secretKey) static StringencryptRefreshToken(RefreshToken token, Key secretKey, KeyProperties props) static String[]static StringgetStringPart(String str) parseSimpleMap(String mapStr) static ServerAccessTokenrecreateAccessToken(OAuthDataProvider provider, String newTokenKey, String decryptedSequence) static ClientrecreateClient(String sequence) static ServerAuthorizationCodeGrantrecreateCodeGrant(OAuthDataProvider provider, String decryptedSequence) static RefreshTokenrecreateRefreshToken(OAuthDataProvider provider, String newTokenKey, String decryptedSequence) static StringtokenizeString(String str)
-
Field Details
-
SEP
- See Also:
-
-
Method Details
-
encryptClient
- 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
- 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
- Throws:
SecurityException
-
getStringPart
-
parseSimpleMap
-
getParts
-
tokenizeString
-