abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r1176222 - /abdera/abdera2/common/src/main/java/org/apache/abdera2/common/security/Otp.java
Date Tue, 27 Sep 2011 06:11:06 GMT
Author: jmsnell
Date: Tue Sep 27 06:11:05 2011
New Revision: 1176222

URL: http://svn.apache.org/viewvc?rev=1176222&view=rev
Log: (empty)

Modified:
    abdera/abdera2/common/src/main/java/org/apache/abdera2/common/security/Otp.java

Modified: abdera/abdera2/common/src/main/java/org/apache/abdera2/common/security/Otp.java
URL: http://svn.apache.org/viewvc/abdera/abdera2/common/src/main/java/org/apache/abdera2/common/security/Otp.java?rev=1176222&r1=1176221&r2=1176222&view=diff
==============================================================================
--- abdera/abdera2/common/src/main/java/org/apache/abdera2/common/security/Otp.java (original)
+++ abdera/abdera2/common/src/main/java/org/apache/abdera2/common/security/Otp.java Tue Sep
27 06:11:05 2011
@@ -1,6 +1,5 @@
 package org.apache.abdera2.common.security;
-import javax.crypto.spec.SecretKeySpec;
-
+import java.security.Key;
 
 /**
  * Utility class for generating One-Time-Passwords using the HOTP algorithm
@@ -19,15 +18,15 @@ public abstract class Otp extends KeyBas
     super(key, alg, size);
   }
 
-  protected Otp(SecretKeySpec key, int size) {
+  protected Otp(Key key, int size) {
     super(key, size);
   }
 
-  protected Otp(SecretKeySpec key, String alg, int size) {
+  protected Otp(Key key, String alg, int size) {
     super(key, alg, size);
   }
 
-  protected Otp(SecretKeySpec key) {
+  protected Otp(Key key) {
     super(key,8);
   }
 
@@ -96,17 +95,17 @@ public abstract class Otp extends KeyBas
       this.step = step;
     }
 
-    public Totp(int step, SecretKeySpec key, int size) {
+    public Totp(int step, Key key, int size) {
       super(key, size);
       this.step = step;
     }
 
-    public Totp(int step, SecretKeySpec key, String alg, int size) {
+    public Totp(int step, Key key, String alg, int size) {
       super(key, alg, size);
       this.step = step;
     }
 
-    public Totp(int step, SecretKeySpec key) {
+    public Totp(int step, Key key) {
       super(key);
       this.step = step;
     }



Mime
View raw message