Apache CXF API

org.apache.cxf.rs.security.oauth2.utils
Class ModelEncryptionSupport

java.lang.Object
  extended by org.apache.cxf.rs.security.oauth2.utils.ModelEncryptionSupport

public final class ModelEncryptionSupport
extends Object

Default Model Encryption helpers


Method Summary
static ServerAccessToken decryptAccessToken(OAuthDataProvider provider, String encodedToken, Key secretKey)
           
static ServerAccessToken decryptAccessToken(OAuthDataProvider provider, String encodedData, Key secretKey, SecretKeyProperties props)
           
static ServerAccessToken decryptAccessToken(OAuthDataProvider provider, String encodedToken, String encodedSecretKey)
           
static ServerAccessToken decryptAccessToken(OAuthDataProvider provider, String encodedToken, String encodedSecretKey, SecretKeyProperties props)
           
static Client decryptClient(String encodedSequence, Key secretKey)
           
static Client decryptClient(String encodedData, Key secretKey, SecretKeyProperties props)
           
static Client decryptClient(String encodedSequence, String encodedSecretKey)
           
static Client decryptClient(String encodedSequence, String encodedSecretKey, SecretKeyProperties props)
           
static ServerAuthorizationCodeGrant decryptCodeGrant(OAuthDataProvider provider, String encodedToken, Key key)
           
static ServerAuthorizationCodeGrant decryptCodeGrant(OAuthDataProvider provider, String encodedData, Key key, SecretKeyProperties props)
           
static ServerAuthorizationCodeGrant decryptCodeGrant(OAuthDataProvider provider, String encodedToken, String encodedSecretKey)
           
static ServerAuthorizationCodeGrant decryptCodeGrant(OAuthDataProvider provider, String encodedToken, String encodedSecretKey, SecretKeyProperties props)
           
static RefreshToken decryptRefreshToken(OAuthDataProvider provider, String encodedToken, Key key)
           
static RefreshToken decryptRefreshToken(OAuthDataProvider provider, String encodedData, Key key, SecretKeyProperties props)
           
static RefreshToken decryptRefreshToken(OAuthDataProvider provider, String encodedToken, String encodedSecretKey)
           
static RefreshToken decryptRefreshToken(OAuthDataProvider provider, String encodedToken, String encodedSecretKey, SecretKeyProperties props)
           
static String encryptAccessToken(ServerAccessToken token, Key secretKey)
           
static String encryptAccessToken(ServerAccessToken token, Key secretKey, SecretKeyProperties props)
           
static String encryptClient(Client client, Key secretKey)
           
static String encryptClient(Client client, Key secretKey, SecretKeyProperties props)
           
static String encryptCodeGrant(ServerAuthorizationCodeGrant grant, Key secretKey)
           
static String encryptCodeGrant(ServerAuthorizationCodeGrant grant, Key secretKey, SecretKeyProperties props)
           
static String encryptRefreshToken(RefreshToken token, Key secretKey)
           
static String encryptRefreshToken(RefreshToken token, Key secretKey, SecretKeyProperties props)
           
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

encryptClient

public static String encryptClient(Client client,
                                   Key secretKey)
                            throws EncryptionException
Throws:
EncryptionException

encryptClient

public static String encryptClient(Client client,
                                   Key secretKey,
                                   SecretKeyProperties props)
                            throws EncryptionException
Throws:
EncryptionException

encryptAccessToken

public static String encryptAccessToken(ServerAccessToken token,
                                        Key secretKey)
                                 throws EncryptionException
Throws:
EncryptionException

encryptAccessToken

public static String encryptAccessToken(ServerAccessToken token,
                                        Key secretKey,
                                        SecretKeyProperties props)
                                 throws EncryptionException
Throws:
EncryptionException

encryptRefreshToken

public static String encryptRefreshToken(RefreshToken token,
                                         Key secretKey)
                                  throws EncryptionException
Throws:
EncryptionException

encryptRefreshToken

public static String encryptRefreshToken(RefreshToken token,
                                         Key secretKey,
                                         SecretKeyProperties props)
                                  throws EncryptionException
Throws:
EncryptionException

encryptCodeGrant

public static String encryptCodeGrant(ServerAuthorizationCodeGrant grant,
                                      Key secretKey)
                               throws EncryptionException
Throws:
EncryptionException

encryptCodeGrant

public static String encryptCodeGrant(ServerAuthorizationCodeGrant grant,
                                      Key secretKey,
                                      SecretKeyProperties props)
                               throws EncryptionException
Throws:
EncryptionException

decryptClient

public static Client decryptClient(String encodedSequence,
                                   String encodedSecretKey)
                            throws EncryptionException
Throws:
EncryptionException

decryptClient

public static Client decryptClient(String encodedSequence,
                                   String encodedSecretKey,
                                   SecretKeyProperties props)
                            throws EncryptionException
Throws:
EncryptionException

decryptClient

public static Client decryptClient(String encodedSequence,
                                   Key secretKey)
                            throws EncryptionException
Throws:
EncryptionException

decryptClient

public static Client decryptClient(String encodedData,
                                   Key secretKey,
                                   SecretKeyProperties props)
                            throws EncryptionException
Throws:
EncryptionException

decryptAccessToken

public static ServerAccessToken decryptAccessToken(OAuthDataProvider provider,
                                                   String encodedToken,
                                                   String encodedSecretKey)
                                            throws EncryptionException
Throws:
EncryptionException

decryptAccessToken

public static ServerAccessToken decryptAccessToken(OAuthDataProvider provider,
                                                   String encodedToken,
                                                   String encodedSecretKey,
                                                   SecretKeyProperties props)
                                            throws EncryptionException
Throws:
EncryptionException

decryptAccessToken

public static ServerAccessToken decryptAccessToken(OAuthDataProvider provider,
                                                   String encodedToken,
                                                   Key secretKey)
                                            throws EncryptionException
Throws:
EncryptionException

decryptAccessToken

public static ServerAccessToken decryptAccessToken(OAuthDataProvider provider,
                                                   String encodedData,
                                                   Key secretKey,
                                                   SecretKeyProperties props)
                                            throws EncryptionException
Throws:
EncryptionException

decryptRefreshToken

public static RefreshToken decryptRefreshToken(OAuthDataProvider provider,
                                               String encodedToken,
                                               String encodedSecretKey)
                                        throws EncryptionException
Throws:
EncryptionException

decryptRefreshToken

public static RefreshToken decryptRefreshToken(OAuthDataProvider provider,
                                               String encodedToken,
                                               String encodedSecretKey,
                                               SecretKeyProperties props)
                                        throws EncryptionException
Throws:
EncryptionException

decryptRefreshToken

public static RefreshToken decryptRefreshToken(OAuthDataProvider provider,
                                               String encodedToken,
                                               Key key)
                                        throws EncryptionException
Throws:
EncryptionException

decryptRefreshToken

public static RefreshToken decryptRefreshToken(OAuthDataProvider provider,
                                               String encodedData,
                                               Key key,
                                               SecretKeyProperties props)
                                        throws EncryptionException
Throws:
EncryptionException

decryptCodeGrant

public static ServerAuthorizationCodeGrant decryptCodeGrant(OAuthDataProvider provider,
                                                            String encodedToken,
                                                            String encodedSecretKey)
                                                     throws EncryptionException
Throws:
EncryptionException

decryptCodeGrant

public static ServerAuthorizationCodeGrant decryptCodeGrant(OAuthDataProvider provider,
                                                            String encodedToken,
                                                            String encodedSecretKey,
                                                            SecretKeyProperties props)
                                                     throws EncryptionException
Throws:
EncryptionException

decryptCodeGrant

public static ServerAuthorizationCodeGrant decryptCodeGrant(OAuthDataProvider provider,
                                                            String encodedToken,
                                                            Key key)
                                                     throws EncryptionException
Throws:
EncryptionException

decryptCodeGrant

public static ServerAuthorizationCodeGrant decryptCodeGrant(OAuthDataProvider provider,
                                                            String encodedData,
                                                            Key key,
                                                            SecretKeyProperties props)
                                                     throws EncryptionException
Throws:
EncryptionException

recreateAccessToken

public static ServerAccessToken recreateAccessToken(OAuthDataProvider provider,
                                                    String newTokenKey,
                                                    String decryptedSequence)
                                             throws EncryptionException
Throws:
EncryptionException

recreateRefreshToken

public static RefreshToken recreateRefreshToken(OAuthDataProvider provider,
                                                String newTokenKey,
                                                String decryptedSequence)
                                         throws EncryptionException
Throws:
EncryptionException

recreateCodeGrant

public static ServerAuthorizationCodeGrant recreateCodeGrant(OAuthDataProvider provider,
                                                             String decryptedSequence)
                                                      throws EncryptionException
Throws:
EncryptionException

recreateClient

public static Client recreateClient(String sequence)
                             throws EncryptionException
Throws:
EncryptionException

Apache CXF API

Apache CXF