cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject git commit: Adding static qualifiers
Date Thu, 08 May 2014 16:27:34 GMT
Repository: cxf
Updated Branches:
  refs/heads/master a45ef8e3f -> 2bc5efe54


Adding static qualifiers


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/2bc5efe5
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/2bc5efe5
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/2bc5efe5

Branch: refs/heads/master
Commit: 2bc5efe54e2d73983f92e2a4d4d64b7317a13e8b
Parents: a45ef8e
Author: Sergey Beryozkin <sberyozkin@talend.com>
Authored: Thu May 8 17:27:16 2014 +0100
Committer: Sergey Beryozkin <sberyozkin@talend.com>
Committed: Thu May 8 17:27:16 2014 +0100

----------------------------------------------------------------------
 .../cxf/rs/security/oauth2/utils/crypto/CryptoUtils.java     | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/2bc5efe5/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/utils/crypto/CryptoUtils.java
----------------------------------------------------------------------
diff --git a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/utils/crypto/CryptoUtils.java
b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/utils/crypto/CryptoUtils.java
index 877bf2b..16dc0e1 100644
--- a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/utils/crypto/CryptoUtils.java
+++ b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/utils/crypto/CryptoUtils.java
@@ -112,11 +112,11 @@ public final class CryptoUtils {
         }
     }
      
-    public byte[] signData(byte[] data, PrivateKey key, String signAlgo) {
+    public static byte[] signData(byte[] data, PrivateKey key, String signAlgo) {
         return signData(data, key, signAlgo, null, null);
     }
     
-    public byte[] signData(byte[] data, PrivateKey key, String signAlgo, SecureRandom random,
+    public static byte[] signData(byte[] data, PrivateKey key, String signAlgo, SecureRandom
random,
                            AlgorithmParameterSpec params) {
         try {
             Signature s = Signature.getInstance(signAlgo);
@@ -135,11 +135,11 @@ public final class CryptoUtils {
         }
     }
     
-    public void verifySignature(byte[] data, byte[] signature, PublicKey key, String signAlgo)
{
+    public static void verifySignature(byte[] data, byte[] signature, PublicKey key, String
signAlgo) {
         verifySignature(data, signature, key, signAlgo, null);
     }
     
-    public void verifySignature(byte[] data, byte[] signature, PublicKey key, String signAlgo,

+    public static void verifySignature(byte[] data, byte[] signature, PublicKey key, String
signAlgo, 
                                 AlgorithmParameterSpec params) {
         try {
             Signature s = Signature.getInstance(signAlgo);


Mime
View raw message