Author: simonetripodi
Date: Thu Feb 25 20:44:25 2010
New Revision: 916444

URL: http://svn.apache.org/viewvc?rev=916444&view=rev
Log:
first checkin of PlaintextMethodAlgorithmTestCase class

Added:
    
labs/amber/signature-api/src/test/java/org/apache/labs/amber/signature/signers/plaintext/
    
labs/amber/signature-api/src/test/java/org/apache/labs/amber/signature/signers/plaintext/PlaintextMethodAlgorithmTestCase.java
   (with props)

Added: 
labs/amber/signature-api/src/test/java/org/apache/labs/amber/signature/signers/plaintext/PlaintextMethodAlgorithmTestCase.java
URL: 
http://svn.apache.org/viewvc/labs/amber/signature-api/src/test/java/org/apache/labs/amber/signature/signers/plaintext/PlaintextMethodAlgorithmTestCase.java?rev=916444&view=auto
==============================================================================
--- 
labs/amber/signature-api/src/test/java/org/apache/labs/amber/signature/signers/plaintext/PlaintextMethodAlgorithmTestCase.java
 (added)
+++ 
labs/amber/signature-api/src/test/java/org/apache/labs/amber/signature/signers/plaintext/PlaintextMethodAlgorithmTestCase.java
 Thu Feb 25 20:44:25 2010
@@ -0,0 +1,37 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.labs.amber.signature.signers.plaintext;
+
+import org.apache.labs.amber.signature.signers.AbstractMethodAlgorithmTestCase;
+import org.junit.Test;
+
+/**
+ * PLAINTEXT Method test case implementation.
+ *
+ * @version $Id$
+ */
+public final class PlaintextMethodAlgorithmTestCase extends 
AbstractMethodAlgorithmTestCase<PlaintextKey, PlaintextKey> {
+
+    @Test
+    public void verifyHmacSha1MethodAlgorithm() throws Exception {
+        // the consumer secret
+        PlaintextKey hmacKey = new PlaintextKey("kd94hf93k423kf44");
+
+        this.verifySignature(hmacKey, hmacKey, new PlaintextMethodAlgorithm(), 
"kd94hf93k423kf44&pfkkdhi9sl3r4s00");
+    }
+
+}

Propchange: 
labs/amber/signature-api/src/test/java/org/apache/labs/amber/signature/signers/plaintext/PlaintextMethodAlgorithmTestCase.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
labs/amber/signature-api/src/test/java/org/apache/labs/amber/signature/signers/plaintext/PlaintextMethodAlgorithmTestCase.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: 
labs/amber/signature-api/src/test/java/org/apache/labs/amber/signature/signers/plaintext/PlaintextMethodAlgorithmTestCase.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to