Class PEMCertStringTrait
java.lang.Object
org.bouncycastle.asn1.ASN1Object
paccor.tcg.credential.Trait<org.bouncycastle.asn1.ASN1UTF8String, PEMCertStringTrait>
paccor.tcg.credential.PEMCertStringTrait
- All Implemented Interfaces:
org.bouncycastle.asn1.ASN1Encodable, org.bouncycastle.util.Encodable
public class PEMCertStringTrait
extends Trait<org.bouncycastle.asn1.ASN1UTF8String, PEMCertStringTrait>
PEMCertStringTrait TRAIT ::= {
SYNTAX UTF8String (SIZE (1..CERTSTRMAX))
IDENTIFIED BY tcg-tr-ID-PEMCertString }
A Trait that contains a PEM-encoded certificate using the PEMCertStringTrait SHALL use tcg-tr-cat-PEMCertificate in its traitCategory field.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classPEMCertStringTrait.PEMCertStringTraitBuilder<C extends PEMCertStringTrait, B extends PEMCertStringTrait.PEMCertStringTraitBuilder<C,B>> Needed to include this to satisfy Javadoc compiling.Nested classes/interfaces inherited from class Trait
Trait.TraitBuilder<TraitValueType, TraitType, C, B> -
Field Summary
Fields inherited from class Trait
MIN_SEQUENCE_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PEMCertStringTrait.PEMCertStringTraitBuilder<?, ?> builder()Initializes a builder with expected PEMCertStringTrait metadata.createInstance(Object obj) Common method to getInstance.static PEMCertStringTraitfromASN1Sequence(org.bouncycastle.asn1.ASN1Sequence seq) Attempts to read the provided sequence into an instance of this trait.static PEMCertStringTraitfromJsonNode(tools.jackson.databind.JsonNode node) Attempts to read the provided JSON node into an instance of this trait.static PEMCertStringTraitgetInstance(Object obj) Attempts to convert the provided object into an instance of this trait.Methods inherited from class Trait
canEqual, equals, getInstance, getInstance, hashCode, toASN1PrimitiveMethods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, getEncoded, getEncoded, hasEncodedTagValue
-
Constructor Details
-
PEMCertStringTrait
public PEMCertStringTrait()
-
-
Method Details
-
getInstance
Attempts to convert the provided object into an instance of this trait.- Parameters:
obj- the object to convert- Returns:
- PEMCertStringTrait
-
createInstance
Description copied from class:TraitCommon method to getInstance.- Specified by:
createInstancein classTrait<org.bouncycastle.asn1.ASN1UTF8String, PEMCertStringTrait>- Parameters:
obj- Object- Returns:
- Trait type
-
fromASN1Sequence
Attempts to read the provided sequence into an instance of this trait.- Parameters:
seq- ASN1Sequence to parse- Returns:
- PEMCertStringTrait
-
fromJsonNode
Attempts to read the provided JSON node into an instance of this trait.- Parameters:
node- JSON node to parse- Returns:
- PEMCertStringTrait
-
builder
Initializes a builder with expected PEMCertStringTrait metadata.- Returns:
- trait
-