diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2020-02-20 01:37:07 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2020-02-20 01:37:07 +0700 |
commit | 765426a8dc1fe20295f91d55e7bbf539e6b831fc (patch) | |
tree | 8e62ef9b9f45be2030ff490bd09834f2fb4df7a5 /crypto/src/tsp | |
parent | Mark methods as "Var" for clarity (diff) | |
download | BouncyCastle.NET-ed25519-765426a8dc1fe20295f91d55e7bbf539e6b831fc.tar.xz |
Misc. updates from bc-java
Diffstat (limited to 'crypto/src/tsp')
-rw-r--r-- | crypto/src/tsp/TimeStampToken.cs | 15 |
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 |