Class CRLToken

    • Constructor Detail

      • CRLToken

        public CRLToken​(CertificateToken certificateToken,
                        CRLValidity crlValidity)
        The constructor to be used with the certificate which is managed by the CRL and the CRLValidity.
        Parameters:
        certificateToken - the CertificateToken which is managed by this CRL.
        crlValidity - CRLValidity containing the information about the validity of the CRL
    • Method Detail

      • getIssuerX500Principal

        public X500Principal getIssuerX500Principal()
        Description copied from class: Token
        Returns the X500Principal of the certificate which was used to sign this token.
        Specified by:
        getIssuerX500Principal in class Token
        Returns:
        the issuer's X500Principal
      • getAbbreviation

        public String getAbbreviation()
        This method returns the DSS abbreviation of the CRLToken. It is used for debugging purpose.
        Overrides:
        getAbbreviation in class Token
        Returns:
        the DSS abbreviation of the CRLToken
      • getEncoded

        public byte[] getEncoded()
        Description copied from class: Token
        Returns the encoded form of the wrapped token.
        Specified by:
        getEncoded in class Token
        Returns:
        the encoded form of the wrapped token
      • isValid

        public boolean isValid()
        Indicates if the token signature is intact and the signing certificate has cRLSign key usage bit set.
        Specified by:
        isValid in class RevocationToken
        Returns:
        true or false
      • toString

        public String toString​(String indentStr)
        Description copied from class: Token
        Returns a string representation of the token.
        Specified by:
        toString in class Token
        Parameters:
        indentStr - the indentation to use
        Returns:
        string representation of the token