Author: simonetripodi
Date: Fri Feb 26 07:49:21 2010
New Revision: 916602

URL: http://svn.apache.org/viewvc?rev=916602&view=rev
Log:
first checkin of RsaSha1MethodAlgorithm skeleton class

Added:
    
labs/amber/signature-api/src/main/java/org/apache/labs/amber/signature/signers/rsa/RsaSha1MethodAlgorithm.java
   (with props)

Added: 
labs/amber/signature-api/src/main/java/org/apache/labs/amber/signature/signers/rsa/RsaSha1MethodAlgorithm.java
URL: 
http://svn.apache.org/viewvc/labs/amber/signature-api/src/main/java/org/apache/labs/amber/signature/signers/rsa/RsaSha1MethodAlgorithm.java?rev=916602&view=auto
==============================================================================
--- 
labs/amber/signature-api/src/main/java/org/apache/labs/amber/signature/signers/rsa/RsaSha1MethodAlgorithm.java
 (added)
+++ 
labs/amber/signature-api/src/main/java/org/apache/labs/amber/signature/signers/rsa/RsaSha1MethodAlgorithm.java
 Fri Feb 26 07:49:21 2010
@@ -0,0 +1,52 @@
+/*
+ * 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.rsa;
+
+import org.apache.labs.amber.signature.signers.AbstractMethodAlgorithm;
+import org.apache.labs.amber.signature.signers.SignatureException;
+import org.apache.labs.amber.signature.signers.SignatureMethod;
+
+/**
+ * RSA-SHA1 Method implementation.
+ *
+ * @version $Id$
+ */
+...@signaturemethod("RSA-SHA1")
+public final class RsaSha1MethodAlgorithm extends 
AbstractMethodAlgorithm<DerRsaSha1SigningKey, DerRsaSha1VeryfingKey> {
+
+    /**
+     * {...@inheritdoc}
+     */
+    @Override
+    protected String encode(DerRsaSha1SigningKey signingKey,
+            String secretCredential,
+            String baseString) throws SignatureException {
+        return null;
+    }
+
+    /**
+     * {...@inheritdoc}
+     */
+    @Override
+    protected boolean verify(String signature,
+            DerRsaSha1VeryfingKey verifyingKey,
+            String secretCredential,
+            String baseString) throws SignatureException {
+        return false;
+    }
+
+}

Propchange: 
labs/amber/signature-api/src/main/java/org/apache/labs/amber/signature/signers/rsa/RsaSha1MethodAlgorithm.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
labs/amber/signature-api/src/main/java/org/apache/labs/amber/signature/signers/rsa/RsaSha1MethodAlgorithm.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: 
labs/amber/signature-api/src/main/java/org/apache/labs/amber/signature/signers/rsa/RsaSha1MethodAlgorithm.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain



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

Reply via email to