public final class ModelEncryptionSupport extends Object
| Modifier and Type | Method and Description |
|---|---|
static ServerAccessToken |
decryptAccessToken(OAuthDataProvider provider,
String encodedToken,
Key secretKey) |
static ServerAccessToken |
decryptAccessToken(OAuthDataProvider provider,
String encodedData,
Key secretKey,
org.apache.cxf.rt.security.crypto.KeyProperties props) |
static ServerAccessToken |
decryptAccessToken(OAuthDataProvider provider,
String encodedToken,
String encodedSecretKey) |
static ServerAccessToken |
decryptAccessToken(OAuthDataProvider provider,
String encodedToken,
String encodedSecretKey,
org.apache.cxf.rt.security.crypto.KeyProperties props) |
static Client |
decryptClient(String encodedSequence,
Key secretKey) |
static Client |
decryptClient(String encodedData,
Key secretKey,
org.apache.cxf.rt.security.crypto.KeyProperties props) |
static Client |
decryptClient(String encodedSequence,
String encodedSecretKey) |
static Client |
decryptClient(String encodedSequence,
String encodedSecretKey,
org.apache.cxf.rt.security.crypto.KeyProperties props) |
static ServerAuthorizationCodeGrant |
decryptCodeGrant(OAuthDataProvider provider,
String encodedToken,
Key key) |
static ServerAuthorizationCodeGrant |
decryptCodeGrant(OAuthDataProvider provider,
String encodedData,
Key key,
org.apache.cxf.rt.security.crypto.KeyProperties props) |
static ServerAuthorizationCodeGrant |
decryptCodeGrant(OAuthDataProvider provider,
String encodedToken,
String encodedSecretKey) |
static ServerAuthorizationCodeGrant |
decryptCodeGrant(OAuthDataProvider provider,
String encodedToken,
String encodedSecretKey,
org.apache.cxf.rt.security.crypto.KeyProperties props) |
static RefreshToken |
decryptRefreshToken(OAuthDataProvider provider,
String encodedToken,
Key key) |
static RefreshToken |
decryptRefreshToken(OAuthDataProvider provider,
String encodedData,
Key key,
org.apache.cxf.rt.security.crypto.KeyProperties props) |
static RefreshToken |
decryptRefreshToken(OAuthDataProvider provider,
String encodedToken,
String encodedSecretKey) |
static RefreshToken |
decryptRefreshToken(OAuthDataProvider provider,
String encodedToken,
String encodedSecretKey,
org.apache.cxf.rt.security.crypto.KeyProperties props) |
static String |
encryptAccessToken(ServerAccessToken token,
Key secretKey) |
static String |
encryptAccessToken(ServerAccessToken token,
Key secretKey,
org.apache.cxf.rt.security.crypto.KeyProperties props) |
static String |
encryptClient(Client client,
Key secretKey) |
static String |
encryptClient(Client client,
Key secretKey,
org.apache.cxf.rt.security.crypto.KeyProperties props) |
static String |
encryptCodeGrant(ServerAuthorizationCodeGrant grant,
Key secretKey) |
static String |
encryptCodeGrant(ServerAuthorizationCodeGrant grant,
Key secretKey,
org.apache.cxf.rt.security.crypto.KeyProperties props) |
static String |
encryptRefreshToken(RefreshToken token,
Key secretKey) |
static String |
encryptRefreshToken(RefreshToken token,
Key secretKey,
org.apache.cxf.rt.security.crypto.KeyProperties props) |
static String[] |
getParts(String sequence) |
static String |
getStringPart(String str) |
static Map<String,String> |
parseSimpleMap(String mapStr) |
static ServerAccessToken |
recreateAccessToken(OAuthDataProvider provider,
String newTokenKey,
String decryptedSequence) |
static Client |
recreateClient(String sequence) |
static ServerAuthorizationCodeGrant |
recreateCodeGrant(OAuthDataProvider provider,
String decryptedSequence) |
static RefreshToken |
recreateRefreshToken(OAuthDataProvider provider,
String newTokenKey,
String decryptedSequence) |
static String |
tokenizeString(String str) |
public static final String SEP
public static String encryptClient(Client client, Key secretKey) throws SecurityException
SecurityExceptionpublic static String encryptClient(Client client, Key secretKey, org.apache.cxf.rt.security.crypto.KeyProperties props) throws SecurityException
SecurityExceptionpublic static String encryptAccessToken(ServerAccessToken token, Key secretKey) throws SecurityException
SecurityExceptionpublic static String encryptAccessToken(ServerAccessToken token, Key secretKey, org.apache.cxf.rt.security.crypto.KeyProperties props) throws SecurityException
SecurityExceptionpublic static String encryptRefreshToken(RefreshToken token, Key secretKey) throws SecurityException
SecurityExceptionpublic static String encryptRefreshToken(RefreshToken token, Key secretKey, org.apache.cxf.rt.security.crypto.KeyProperties props) throws SecurityException
SecurityExceptionpublic static String encryptCodeGrant(ServerAuthorizationCodeGrant grant, Key secretKey) throws SecurityException
SecurityExceptionpublic static String encryptCodeGrant(ServerAuthorizationCodeGrant grant, Key secretKey, org.apache.cxf.rt.security.crypto.KeyProperties props) throws SecurityException
SecurityExceptionpublic static Client decryptClient(String encodedSequence, String encodedSecretKey) throws SecurityException
SecurityExceptionpublic static Client decryptClient(String encodedSequence, String encodedSecretKey, org.apache.cxf.rt.security.crypto.KeyProperties props) throws SecurityException
SecurityExceptionpublic static Client decryptClient(String encodedSequence, Key secretKey) throws SecurityException
SecurityExceptionpublic static Client decryptClient(String encodedData, Key secretKey, org.apache.cxf.rt.security.crypto.KeyProperties props) throws SecurityException
SecurityExceptionpublic static ServerAccessToken decryptAccessToken(OAuthDataProvider provider, String encodedToken, String encodedSecretKey) throws SecurityException
SecurityExceptionpublic static ServerAccessToken decryptAccessToken(OAuthDataProvider provider, String encodedToken, String encodedSecretKey, org.apache.cxf.rt.security.crypto.KeyProperties props) throws SecurityException
SecurityExceptionpublic static ServerAccessToken decryptAccessToken(OAuthDataProvider provider, String encodedToken, Key secretKey) throws SecurityException
SecurityExceptionpublic static ServerAccessToken decryptAccessToken(OAuthDataProvider provider, String encodedData, Key secretKey, org.apache.cxf.rt.security.crypto.KeyProperties props) throws SecurityException
SecurityExceptionpublic static RefreshToken decryptRefreshToken(OAuthDataProvider provider, String encodedToken, String encodedSecretKey) throws SecurityException
SecurityExceptionpublic static RefreshToken decryptRefreshToken(OAuthDataProvider provider, String encodedToken, String encodedSecretKey, org.apache.cxf.rt.security.crypto.KeyProperties props) throws SecurityException
SecurityExceptionpublic static RefreshToken decryptRefreshToken(OAuthDataProvider provider, String encodedToken, Key key) throws SecurityException
SecurityExceptionpublic static RefreshToken decryptRefreshToken(OAuthDataProvider provider, String encodedData, Key key, org.apache.cxf.rt.security.crypto.KeyProperties props) throws SecurityException
SecurityExceptionpublic static ServerAuthorizationCodeGrant decryptCodeGrant(OAuthDataProvider provider, String encodedToken, String encodedSecretKey) throws SecurityException
SecurityExceptionpublic static ServerAuthorizationCodeGrant decryptCodeGrant(OAuthDataProvider provider, String encodedToken, String encodedSecretKey, org.apache.cxf.rt.security.crypto.KeyProperties props) throws SecurityException
SecurityExceptionpublic static ServerAuthorizationCodeGrant decryptCodeGrant(OAuthDataProvider provider, String encodedToken, Key key) throws SecurityException
SecurityExceptionpublic static ServerAuthorizationCodeGrant decryptCodeGrant(OAuthDataProvider provider, String encodedData, Key key, org.apache.cxf.rt.security.crypto.KeyProperties props) throws SecurityException
SecurityExceptionpublic static ServerAccessToken recreateAccessToken(OAuthDataProvider provider, String newTokenKey, String decryptedSequence) throws SecurityException
SecurityExceptionpublic static RefreshToken recreateRefreshToken(OAuthDataProvider provider, String newTokenKey, String decryptedSequence) throws SecurityException
SecurityExceptionpublic static ServerAuthorizationCodeGrant recreateCodeGrant(OAuthDataProvider provider, String decryptedSequence) throws SecurityException
SecurityExceptionpublic static Client recreateClient(String sequence) throws SecurityException
SecurityExceptionApache CXF