Class C509ConversionOptions
java.lang.Object
org.bouncycastle.cbor.c509.C509ConversionOptions
Options controlling the conversion of an X.509 certificate to C509.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final C509ConversionOptionsThe default options: elliptic curve points are compressed and the ECDSA signature component width is derived from the signature itself. -
Method Summary
Modifier and TypeMethodDescriptionwithEcdsaSignatureValueWidth(int width) Return a copy of these options with a fixed octet width for the components of an ECDSA style signature value (Section 3.2.2 - for example 32 for P-256).withPointCompression(boolean pointCompression) Return a copy of these options with point compression turned on or off.
-
Field Details
-
DEFAULT
The default options: elliptic curve points are compressed and the ECDSA signature component width is derived from the signature itself.
-
-
Method Details
-
withPointCompression
Return a copy of these options with point compression turned on or off. When on (the default), an uncompressed id-ecPublicKey subjectPublicKey is stored in compressed form - for a re-encoded certificate using the 0xfe/0xfd markers of Section 3.2.1 so the original DER can be recovered. -
withEcdsaSignatureValueWidth
Return a copy of these options with a fixed octet width for the components of an ECDSA style signature value (Section 3.2.2 - for example 32 for P-256). The default of 0 derives the width from the signature's own component lengths, rounded up to the width of the nearest common curve.
-