本文整理汇总了Java中eu.europa.esig.dss.utils.Utils.isTrue方法的典型用法代码示例。如果您正苦于以下问题:Java Utils.isTrue方法的具体用法?Java Utils.isTrue怎么用?Java Utils.isTrue使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类eu.europa.esig.dss.utils.Utils
的用法示例。
在下文中一共展示了Utils.isTrue方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: isPolicyAsn1Processable
import eu.europa.esig.dss.utils.Utils; //导入方法依赖的package包/类
public boolean isPolicyAsn1Processable() {
XmlPolicy policy = signature.getPolicy();
if (policy != null) {
return Utils.isTrue(policy.isAsn1Processable());
}
return false;
}
示例2: isPolicyIdentified
import eu.europa.esig.dss.utils.Utils; //导入方法依赖的package包/类
public boolean isPolicyIdentified() {
XmlPolicy policy = signature.getPolicy();
if (policy != null) {
return Utils.isTrue(policy.isIdentified());
}
return false;
}
示例3: isPolicyStatus
import eu.europa.esig.dss.utils.Utils; //导入方法依赖的package包/类
public boolean isPolicyStatus() {
XmlPolicy policy = signature.getPolicy();
if (policy != null) {
return Utils.isTrue(policy.isStatus());
}
return false;
}
示例4: getAllowedLevelsByForm
import eu.europa.esig.dss.utils.Utils; //导入方法依赖的package包/类
@RequestMapping(value = "/levelsByForm", produces = MediaType.APPLICATION_JSON_VALUE)
@ResponseBody
public List<SignatureLevel> getAllowedLevelsByForm(@RequestParam("form") SignatureForm signatureForm, @RequestParam("isSign") Boolean isSign) {
List<SignatureLevel> levels = new ArrayList<SignatureLevel>();
if (signatureForm != null) {
switch (signatureForm) {
case CAdES:
if (Utils.isTrue(isSign)) {
levels.add(SignatureLevel.CAdES_BASELINE_B);
}
levels.add(SignatureLevel.CAdES_BASELINE_T);
levels.add(SignatureLevel.CAdES_BASELINE_LT);
levels.add(SignatureLevel.CAdES_BASELINE_LTA);
break;
case PAdES:
if (Utils.isTrue(isSign)) {
levels.add(SignatureLevel.PAdES_BASELINE_B);
}
levels.add(SignatureLevel.PAdES_BASELINE_T);
levels.add(SignatureLevel.PAdES_BASELINE_LT);
levels.add(SignatureLevel.PAdES_BASELINE_LTA);
break;
case XAdES:
if (Utils.isTrue(isSign)) {
levels.add(SignatureLevel.XAdES_BASELINE_B);
}
levels.add(SignatureLevel.XAdES_BASELINE_T);
levels.add(SignatureLevel.XAdES_BASELINE_LT);
levels.add(SignatureLevel.XAdES_BASELINE_LTA);
break;
default:
break;
}
}
return levels;
}
示例5: isReferenceDataFound
import eu.europa.esig.dss.utils.Utils; //导入方法依赖的package包/类
@Override
public boolean isReferenceDataFound() {
XmlBasicSignature basicSignature = getCurrentBasicSignature();
return (basicSignature != null) && Utils.isTrue(basicSignature.isReferenceDataFound());
}
示例6: isReferenceDataIntact
import eu.europa.esig.dss.utils.Utils; //导入方法依赖的package包/类
@Override
public boolean isReferenceDataIntact() {
XmlBasicSignature basicSignature = getCurrentBasicSignature();
return (basicSignature != null) && Utils.isTrue(basicSignature.isReferenceDataIntact());
}
示例7: isSignatureIntact
import eu.europa.esig.dss.utils.Utils; //导入方法依赖的package包/类
@Override
public boolean isSignatureIntact() {
XmlBasicSignature basicSignature = getCurrentBasicSignature();
return (basicSignature != null) && Utils.isTrue(basicSignature.isSignatureIntact());
}
示例8: isSignatureValid
import eu.europa.esig.dss.utils.Utils; //导入方法依赖的package包/类
@Override
public boolean isSignatureValid() {
XmlBasicSignature basicSignature = getCurrentBasicSignature();
return (basicSignature != null) && Utils.isTrue(basicSignature.isSignatureValid());
}
示例9: isIssuerSerialMatch
import eu.europa.esig.dss.utils.Utils; //导入方法依赖的package包/类
@Override
public boolean isIssuerSerialMatch() {
XmlSigningCertificate currentSigningCertificate = getCurrentSigningCertificate();
return (currentSigningCertificate != null) && Utils.isTrue(currentSigningCertificate.isIssuerSerialMatch());
}
示例10: isAttributePresent
import eu.europa.esig.dss.utils.Utils; //导入方法依赖的package包/类
@Override
public boolean isAttributePresent() {
XmlSigningCertificate currentSigningCertificate = getCurrentSigningCertificate();
return (currentSigningCertificate != null) && Utils.isTrue(currentSigningCertificate.isAttributePresent());
}
示例11: isDigestValueMatch
import eu.europa.esig.dss.utils.Utils; //导入方法依赖的package包/类
@Override
public boolean isDigestValueMatch() {
XmlSigningCertificate currentSigningCertificate = getCurrentSigningCertificate();
return (currentSigningCertificate != null) && Utils.isTrue(currentSigningCertificate.isDigestValueMatch());
}
示例12: isDigestValuePresent
import eu.europa.esig.dss.utils.Utils; //导入方法依赖的package包/类
@Override
public boolean isDigestValuePresent() {
XmlSigningCertificate currentSigningCertificate = getCurrentSigningCertificate();
return (currentSigningCertificate != null) && Utils.isTrue(currentSigningCertificate.isDigestValuePresent());
}
示例13: isIdPkixOcspNoCheck
import eu.europa.esig.dss.utils.Utils; //导入方法依赖的package包/类
public boolean isIdPkixOcspNoCheck() {
return Utils.isTrue(certificate.isIdPkixOcspNoCheck());
}
示例14: isIdKpOCSPSigning
import eu.europa.esig.dss.utils.Utils; //导入方法依赖的package包/类
public boolean isIdKpOCSPSigning() {
return Utils.isTrue(certificate.isIdKpOCSPSigning());
}
示例15: isCounterSignature
import eu.europa.esig.dss.utils.Utils; //导入方法依赖的package包/类
public boolean isCounterSignature() {
return Utils.isTrue(signature.isCounterSignature());
}