eu.europa.esig.dss.utils.Utils.isTrue()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(3.0k)|赞(0)|评价(0)|浏览(128)

本文整理了Java中eu.europa.esig.dss.utils.Utils.isTrue()方法的一些代码示例,展示了Utils.isTrue()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Utils.isTrue()方法的具体详情如下:
包路径:eu.europa.esig.dss.utils.Utils
类名称:Utils
方法名:isTrue

Utils.isTrue介绍

暂无

代码示例

代码示例来源:origin: esig/dss

public boolean isCertHashExtensionPresent() {
  return Utils.isTrue(revocation.isCertHashExtensionPresent());
}

代码示例来源:origin: esig/dss

public boolean isCertHashExtensionMatch() {
  return Utils.isTrue(revocation.isCertHashExtensionMatch());
}

代码示例来源:origin: esig/dss

public boolean isAvailable() {
  return Utils.isTrue(revocation.isAvailable());
}

代码示例来源:origin: esig/dss

public boolean isCounterSignature() {
  return Utils.isTrue(signature.isCounterSignature());
}

代码示例来源:origin: esig/dss

public boolean isIdPkixOcspNoCheck() {
  return Utils.isTrue(certificate.isIdPkixOcspNoCheck());
}

代码示例来源:origin: esig/dss

public boolean isStatus() {
  return Utils.isTrue(revocation.isStatus());
}

代码示例来源:origin: esig/dss

public boolean isPolicyStatus() {
  XmlPolicy policy = signature.getPolicy();
  if (policy != null) {
    return Utils.isTrue(policy.isStatus());
  }
  return false;
}

代码示例来源:origin: esig/dss

@Override
public boolean isDigestValuePresent() {
  XmlSigningCertificate currentSigningCertificate = getCurrentSigningCertificate();
  return (currentSigningCertificate != null) && Utils.isTrue(currentSigningCertificate.isDigestValuePresent());
}

代码示例来源:origin: esig/dss

@Override
public boolean isSignatureIntact() {
  XmlBasicSignature basicSignature = getCurrentBasicSignature();
  return (basicSignature != null) && Utils.isTrue(basicSignature.isSignatureIntact());
}

代码示例来源:origin: esig/dss

@Override
public boolean isIssuerSerialMatch() {
  XmlSigningCertificate currentSigningCertificate = getCurrentSigningCertificate();
  return (currentSigningCertificate != null) && Utils.isTrue(currentSigningCertificate.isIssuerSerialMatch());
}

代码示例来源:origin: esig/dss

public boolean isPolicyAsn1Processable() {
  XmlPolicy policy = signature.getPolicy();
  if (policy != null) {
    return Utils.isTrue(policy.isAsn1Processable());
  }
  return false;
}

代码示例来源:origin: esig/dss

@Override
public boolean isAttributePresent() {
  XmlSigningCertificate currentSigningCertificate = getCurrentSigningCertificate();
  return (currentSigningCertificate != null) && Utils.isTrue(currentSigningCertificate.isAttributePresent());
}

代码示例来源:origin: esig/dss

@Override
public boolean isDigestValueMatch() {
  XmlSigningCertificate currentSigningCertificate = getCurrentSigningCertificate();
  return (currentSigningCertificate != null) && Utils.isTrue(currentSigningCertificate.isDigestValueMatch());
}

代码示例来源:origin: esig/dss

public boolean isPolicyIdentified() {
  XmlPolicy policy = signature.getPolicy();
  if (policy != null) {
    return Utils.isTrue(policy.isIdentified());
  }
  return false;
}

代码示例来源:origin: esig/dss

@Override
public boolean isSignatureValid() {
  XmlBasicSignature basicSignature = getCurrentBasicSignature();
  return (basicSignature != null) && Utils.isTrue(basicSignature.isSignatureValid());
}

代码示例来源:origin: esig/dss

@Test
public void isTrue() {
  assertFalse(Utils.isTrue(null));
  assertFalse(Utils.isTrue(false));
  assertTrue(Utils.isTrue(true));
  assertTrue(Utils.isTrue(Boolean.TRUE));
}

相关文章