cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1458218 - /cxf/branches/2.7.x-fixes/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/client/OAuthClientUtils.java
Date Tue, 19 Mar 2013 10:52:12 GMT
Author: sergeyb
Date: Tue Mar 19 10:52:11 2013
New Revision: 1458218

URL: http://svn.apache.org/r1458218
Log:
restoring a deprecated OAuth2 OAuthClientUtils method on 2.7.x

Modified:
    cxf/branches/2.7.x-fixes/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/client/OAuthClientUtils.java

Modified: cxf/branches/2.7.x-fixes/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/client/OAuthClientUtils.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.7.x-fixes/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/client/OAuthClientUtils.java?rev=1458218&r1=1458217&r2=1458218&view=diff
==============================================================================
--- cxf/branches/2.7.x-fixes/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/client/OAuthClientUtils.java
(original)
+++ cxf/branches/2.7.x-fixes/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/client/OAuthClientUtils.java
Tue Mar 19 10:52:11 2013
@@ -284,6 +284,18 @@ public final class OAuthClientUtils {
         }
     }
     
+    /**
+     * Creates OAuth Authorization header with Bearer scheme
+     * @param consumer represents the registered client
+     * @param accessToken the access token  
+     * @return the header value
+     */
+    @Deprecated
+    public static String createAuthorizationHeader(Consumer consumer,
+                                                   ClientAccessToken accessToken)
+        throws OAuthServiceException {
+        return createAuthorizationHeader(accessToken);
+    }
     
     /**
      * Creates OAuth Authorization header with Bearer scheme



Mime
View raw message