Class Holder

  • All Implemented Interfaces:
    io.anyline.nfc.bouncycastle.asn1.ASN1Encodable , io.anyline.nfc.bouncycastle.util.Encodable

    
    public class Holder
    extends ASN1Object
                        

    The Holder object.

    For an v2 attribute certificate this is:

               Holder ::= SEQUENCE {
                     baseCertificateID   [0] IssuerSerial OPTIONAL,
                              -- the issuer and serial number of
                              -- the holder's Public Key Certificate
                     entityName          [1] GeneralNames OPTIONAL,
                              -- the name of the claimant or role
                     objectDigestInfo    [2] ObjectDigestInfo OPTIONAL
                              -- used to directly authenticate the holder,
                              -- for example, an executable
               }
    

    For an v1 attribute certificate this is:

            subject CHOICE {
             baseCertificateID [0] EXPLICIT IssuerSerial,
             -- associated with a Public Key Certificate
             subjectName [1] EXPLICIT GeneralNames },
             -- associated with a name
    
    • Constructor Detail

      • Holder

        Holder(IssuerSerial baseCertificateID, int version)
        Constructs a holder from a IssuerSerial for a V1 or V2 certificate.
        Parameters:
        baseCertificateID - The IssuerSerial.
        version - The version of the attribute certificate.
      • Holder

        Holder(GeneralNames entityName)
        Constructs a holder with an entityName for V2 attribute certificates.
        Parameters:
        entityName - The entity or subject name.
      • Holder

        Holder(GeneralNames entityName, int version)
        Constructs a holder with an entityName for V2 attribute certificates or with a subjectName for V1 attribute certificates.
        Parameters:
        entityName - The entity or subject name.
        version - The version of the attribute certificate.
      • Holder

        Holder(ObjectDigestInfo objectDigestInfo)
        Constructs a holder from an object digest info.
        Parameters:
        objectDigestInfo - The object digest info object.