summary refs log tree commit diff
path: root/crypto/src/tsp/TimeStampToken.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2020-02-20 01:37:07 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2020-02-20 01:37:07 +0700
commit765426a8dc1fe20295f91d55e7bbf539e6b831fc (patch)
tree8e62ef9b9f45be2030ff490bd09834f2fb4df7a5 /crypto/src/tsp/TimeStampToken.cs
parentMark methods as "Var" for clarity (diff)
downloadBouncyCastle.NET-ed25519-765426a8dc1fe20295f91d55e7bbf539e6b831fc.tar.xz
Misc. updates from bc-java
Diffstat (limited to 'crypto/src/tsp/TimeStampToken.cs')
-rw-r--r--crypto/src/tsp/TimeStampToken.cs15
1 files changed, 12 insertions, 3 deletions
diff --git a/crypto/src/tsp/TimeStampToken.cs b/crypto/src/tsp/TimeStampToken.cs
index 105208a7d..643813552 100644
--- a/crypto/src/tsp/TimeStampToken.cs
+++ b/crypto/src/tsp/TimeStampToken.cs
@@ -244,9 +244,18 @@ namespace Org.BouncyCastle.Tsp
 		 */
 		public byte[] GetEncoded()
 		{
-			return tsToken.GetEncoded();
-		}
-
+            return tsToken.GetEncoded(Asn1Encodable.Der);
+        }
+
+        /**
+         * return the ASN.1 encoded representation of this object using the specified encoding.
+         *
+         * @param encoding the ASN.1 encoding format to use ("BER" or "DER").
+         */
+        public byte[] GetEncoded(string encoding)
+        {
+            return tsToken.GetEncoded(encoding);
+        }
 
 		// perhaps this should be done using an interface on the ASN.1 classes...
 		private class CertID