maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ogusa...@apache.org
Subject svn commit: r684798 - in /maven/sandbox/trunk/mercury/mercury-crypto/mercury-crypto-api/src/main/java/org/apache/maven/mercury/crypto/api: AbstractStreamVerifierFactory.java StreamVerifierAttributes.java StreamVerifierException.java
Date Mon, 11 Aug 2008 16:22:44 GMT
Author: ogusakov
Date: Mon Aug 11 09:22:43 2008
New Revision: 684798

URL: http://svn.apache.org/viewvc?rev=684798&view=rev
Log:
absorbed Jen's latest changes

Added:
    maven/sandbox/trunk/mercury/mercury-crypto/mercury-crypto-api/src/main/java/org/apache/maven/mercury/crypto/api/AbstractStreamVerifierFactory.java
    maven/sandbox/trunk/mercury/mercury-crypto/mercury-crypto-api/src/main/java/org/apache/maven/mercury/crypto/api/StreamVerifierAttributes.java
    maven/sandbox/trunk/mercury/mercury-crypto/mercury-crypto-api/src/main/java/org/apache/maven/mercury/crypto/api/StreamVerifierException.java

Added: maven/sandbox/trunk/mercury/mercury-crypto/mercury-crypto-api/src/main/java/org/apache/maven/mercury/crypto/api/AbstractStreamVerifierFactory.java
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/mercury/mercury-crypto/mercury-crypto-api/src/main/java/org/apache/maven/mercury/crypto/api/AbstractStreamVerifierFactory.java?rev=684798&view=auto
==============================================================================
--- maven/sandbox/trunk/mercury/mercury-crypto/mercury-crypto-api/src/main/java/org/apache/maven/mercury/crypto/api/AbstractStreamVerifierFactory.java
(added)
+++ maven/sandbox/trunk/mercury/mercury-crypto/mercury-crypto-api/src/main/java/org/apache/maven/mercury/crypto/api/AbstractStreamVerifierFactory.java
Mon Aug 11 09:22:43 2008
@@ -0,0 +1,27 @@
+package org.apache.maven.mercury.crypto.api;
+
+/**
+ *
+ *
+ * @author Oleg Gusakov
+ * @version $Id$
+ *
+ */
+public abstract class AbstractStreamVerifierFactory
+{
+  protected StreamVerifierAttributes attributes;
+
+  /**
+   * @param attributes
+   */
+  public AbstractStreamVerifierFactory( StreamVerifierAttributes attributes )
+  {
+    this.attributes = attributes;
+  }
+
+  public StreamVerifierAttributes getAttributes()
+  {
+    return attributes == null ? new StreamVerifierAttributes() : attributes;
+  }
+  
+}

Added: maven/sandbox/trunk/mercury/mercury-crypto/mercury-crypto-api/src/main/java/org/apache/maven/mercury/crypto/api/StreamVerifierAttributes.java
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/mercury/mercury-crypto/mercury-crypto-api/src/main/java/org/apache/maven/mercury/crypto/api/StreamVerifierAttributes.java?rev=684798&view=auto
==============================================================================
--- maven/sandbox/trunk/mercury/mercury-crypto/mercury-crypto-api/src/main/java/org/apache/maven/mercury/crypto/api/StreamVerifierAttributes.java
(added)
+++ maven/sandbox/trunk/mercury/mercury-crypto/mercury-crypto-api/src/main/java/org/apache/maven/mercury/crypto/api/StreamVerifierAttributes.java
Mon Aug 11 09:22:43 2008
@@ -0,0 +1,54 @@
+package org.apache.maven.mercury.crypto.api;
+
+/**
+ *
+ *
+ * @author Oleg Gusakov
+ * @version $Id$
+ *
+ */
+public class StreamVerifierAttributes
+{
+  protected boolean isLenient = true;
+  protected boolean isSufficient = false;
+  protected String  extension = "none";
+  
+  /**
+   * 
+   */
+  public StreamVerifierAttributes( String extension, boolean isLenient, boolean isSufficient)
+  {
+    this.extension = extension;
+    this.isLenient = isLenient;
+    this.isSufficient = isSufficient;
+  }
+  
+  /**
+   * 
+   */
+  public StreamVerifierAttributes()
+  {
+  }
+
+  public boolean isLenient()
+  {
+      return isLenient;
+  }
+
+  public boolean isSufficient()
+  {
+      return isSufficient;
+  }
+
+  public String getExtension()
+  {
+    return extension == null
+             ? extension
+             : extension.startsWith( "." )
+                         ? extension 
+                         : "."+extension
+           ;
+  }
+  
+  
+}

Added: maven/sandbox/trunk/mercury/mercury-crypto/mercury-crypto-api/src/main/java/org/apache/maven/mercury/crypto/api/StreamVerifierException.java
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/mercury/mercury-crypto/mercury-crypto-api/src/main/java/org/apache/maven/mercury/crypto/api/StreamVerifierException.java?rev=684798&view=auto
==============================================================================
--- maven/sandbox/trunk/mercury/mercury-crypto/mercury-crypto-api/src/main/java/org/apache/maven/mercury/crypto/api/StreamVerifierException.java
(added)
+++ maven/sandbox/trunk/mercury/mercury-crypto/mercury-crypto-api/src/main/java/org/apache/maven/mercury/crypto/api/StreamVerifierException.java
Mon Aug 11 09:22:43 2008
@@ -0,0 +1,54 @@
+package org.apache.maven.mercury.crypto.api;
+
+/**
+ *
+ *
+ * @author Oleg Gusakov
+ * @version $Id$
+ *
+ */
+public class StreamVerifierException
+    extends Exception
+{
+
+  /**
+   * 
+   */
+  public StreamVerifierException()
+  {
+    // TODO Auto-generated constructor stub
+  }
+
+  /**
+   * @param message
+   */
+  public StreamVerifierException(
+      String message )
+  {
+    super( message );
+    // TODO Auto-generated constructor stub
+  }
+
+  /**
+   * @param cause
+   */
+  public StreamVerifierException(
+      Throwable cause )
+  {
+    super( cause );
+    // TODO Auto-generated constructor stub
+  }
+
+  /**
+   * @param message
+   * @param cause
+   */
+  public StreamVerifierException(
+      String message,
+      Throwable cause )
+  {
+    super( message, cause );
+    // TODO Auto-generated constructor stub
+  }
+
+}



Mime
View raw message