Class CertBasedSecurityPrincipal


  • public final class CertBasedSecurityPrincipal
    extends Object
    Cert based security principal with Ledger RoleName.
    • Constructor Detail

      • CertBasedSecurityPrincipal

        public CertBasedSecurityPrincipal()
    • Method Detail

      • cert

        public String cert()
        Get the cert property: Public key of the user cert (.pem or .cer).
        Returns:
        the cert value.
      • withCert

        public CertBasedSecurityPrincipal withCert​(String cert)
        Set the cert property: Public key of the user cert (.pem or .cer).
        Parameters:
        cert - the cert value to set.
        Returns:
        the CertBasedSecurityPrincipal object itself.
      • ledgerRoleName

        public LedgerRoleName ledgerRoleName()
        Get the ledgerRoleName property: LedgerRole associated with the Security Principal of Ledger.
        Returns:
        the ledgerRoleName value.
      • withLedgerRoleName

        public CertBasedSecurityPrincipal withLedgerRoleName​(LedgerRoleName ledgerRoleName)
        Set the ledgerRoleName property: LedgerRole associated with the Security Principal of Ledger.
        Parameters:
        ledgerRoleName - the ledgerRoleName value to set.
        Returns:
        the CertBasedSecurityPrincipal object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.