harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r472466 - in /incubator/harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/org/apache/harmony/security/pkcs7: ContentInfo.java SignedData.java
Date Wed, 08 Nov 2006 12:21:22 GMT
Author: tellison
Date: Wed Nov  8 04:21:21 2006
New Revision: 472466

URL: http://svn.apache.org/viewvc?view=rev&rev=472466
Log:
Apply patch HARMONY-209 ([classlib][security] Add getters to org.apache.harmony.security.pkcs7
classes.)

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/org/apache/harmony/security/pkcs7/ContentInfo.java
    incubator/harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/org/apache/harmony/security/pkcs7/SignedData.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/org/apache/harmony/security/pkcs7/ContentInfo.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/org/apache/harmony/security/pkcs7/ContentInfo.java?view=diff&rev=472466&r1=472465&r2=472466
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/org/apache/harmony/security/pkcs7/ContentInfo.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/org/apache/harmony/security/pkcs7/ContentInfo.java
Wed Nov  8 04:21:21 2006
@@ -74,6 +74,14 @@
         return null;
     }
 
+    public Object getContent() {
+        return content;
+    }
+    
+    public int[] getContentType() {
+        return oid;
+    }
+    
     public byte[] getEncoded() {
         if (encoding == null) {
             encoding = ASN1.encode(this);

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/org/apache/harmony/security/pkcs7/SignedData.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/org/apache/harmony/security/pkcs7/SignedData.java?view=diff&rev=472466&r1=472465&r2=472466
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/org/apache/harmony/security/pkcs7/SignedData.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/org/apache/harmony/security/pkcs7/SignedData.java
Wed Nov  8 04:21:21 2006
@@ -83,6 +83,27 @@
         return signerInfos;
     }
 
+    /**
+     * @return Returns the contentInfo.
+     */
+    public ContentInfo getContentInfo() {
+        return contentInfo;
+    }
+
+    /**
+     * @return Returns the digestAlgorithms.
+     */
+    public List getDigestAlgorithms() {
+        return digestAlgorithms;
+    }
+
+    /**
+     * @return Returns the version.
+     */
+    public int getVersion() {
+        return version;
+    }
+
     public String toString() {
         StringBuffer res = new StringBuffer();
         res.append("---- SignedData:"); //$NON-NLS-1$



Mime
View raw message