本文整理了Java中javax.xml.crypto.dsig.Reference.validate
方法的一些代码示例,展示了Reference.validate
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Reference.validate
方法的具体详情如下:
包路径:javax.xml.crypto.dsig.Reference
类名称:Reference
方法名:validate
[英]Validates this reference. This method verifies the digest of this reference.
This method only validates the reference the first time it is invoked. On subsequent invocations, it returns a cached result.
[中]验证此引用。此方法验证此引用的摘要。
此方法仅在第一次调用引用时对其进行验证。在随后的调用中,它返回一个缓存的结果。
代码示例来源:origin: org.apache.santuario/xmlsec
for (int i = 0, size = refs.size(); validateRefs && i < size; i++) {
Reference ref = refs.get(i);
boolean refValid = ref.validate(vc);
LOG.debug("Reference [{}] is valid: {}", ref.getURI(), refValid);
validateRefs &= refValid;
for (int k = 0; validateMans && k < rsize; k++) {
Reference ref = manRefs.get(k);
boolean refValid = ref.validate(vc);
LOG.debug(
"Manifest ref [{}] is valid: {}", ref.getURI(), refValid
代码示例来源:origin: se.vgregion.commons-util/commons-util-core-bc-composite-security
for (int j=0; i.hasNext(); j++) {
boolean refValid =
((Reference) i.next()).validate(valContext);
System.out.println("ref["+j+"] validity status: " + refValid);
代码示例来源:origin: org.apache.juddi/juddi-client
boolean refValid = ref.validate(valContext);
logger.debug(j);
logger.debug("ref[" + j + "] validity status: " + refValid);
代码示例来源:origin: org.picketlink/picketlink-fed
+ ref.validate(valContext));
代码示例来源:origin: com.phloc/phloc-xmldsig
if (!aReference.validate (aValidationContext))
代码示例来源:origin: org.apache.juddi/uddi-tck-base
for (int j = 0; i.hasNext(); j++) {
Reference ref = (Reference) i.next();
boolean refValid = ref.validate(valContext);
System.out.println("ref[" + j + "] validity status: " + refValid);
System.out.println("Ref type: " + ref.getType() + ", URI: " + ref.getURI());
代码示例来源:origin: org.picketlink/picketlink-fed-core
+ ref.validate(valContext));
代码示例来源:origin: com.helger/peppol-smp-client
while (i.hasNext ())
final boolean bRefValid = ((Reference) i.next ()).validate (aValidateContext);
if (LOGGER.isInfoEnabled ())
LOGGER.info (" Reference[" + nIndex + "] validity status: " + (bRefValid ? "valid" : "NOT valid!"));
代码示例来源:origin: com.hynnet/xws-security
logger.log(Level.FINEST,"Reference URI "+ref.getURI());
boolean refValid =
ref.validate(validationContext);
logger.log(Level.FINEST,"Reference["+j+"] validity status: " + refValid);
代码示例来源:origin: org.codehaus.openxma/xmabootrt
boolean refValid = i.next().validate(valContext);
log.log(LogLevel.FINE, "ref[" + j + "] validity status: " + refValid);
代码示例来源:origin: usnistgov/iheos-toolkit2
for (int j=0; i.hasNext(); j++)
boolean refValid = ((Reference) i.next()).validate(valContext);
代码示例来源:origin: com.helger/ph-xmldsig
if (!aReference.validate (aValidationContext))
代码示例来源:origin: org.picketlink/picketlink-core
logger.trace("[Ref id=" + ref.getId() + ":uri=" + ref.getURI() + "]validity status:" + ref.validate(valContext));
代码示例来源:origin: picketlink/picketlink
logger.trace("[Ref id=" + ref.getId() + ":uri=" + ref.getURI() + "]validity status:" + ref.validate(valContext));
代码示例来源:origin: org.picketlink/picketlink-federation
logger.trace("[Ref id=" + ref.getId() + ":uri=" + ref.getURI() + "]validity status:" + ref.validate(valContext));
代码示例来源:origin: org.picketlink/picketlink-common
logger.trace("[Ref id=" + ref.getId() + ":uri=" + ref.getURI() + "]validity status:" + ref.validate(valContext));
代码示例来源:origin: org.apache.ws.security/wss4j
while (referenceIterator.hasNext()) {
Reference reference = (Reference)referenceIterator.next();
boolean referenceValidationCheck = reference.validate(context);
String id = reference.getId();
if (id == null) {
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.wss4j
while (referenceIterator.hasNext()) {
Reference reference = (Reference)referenceIterator.next();
boolean referenceValidationCheck = reference.validate(context);
String id = reference.getId();
if (id == null) {
代码示例来源:origin: org.apache.wss4j/wss4j-ws-security-dom
while (referenceIterator.hasNext()) {
Reference reference = (Reference)referenceIterator.next();
boolean referenceValidationCheck = reference.validate(context);
String id = reference.getId();
if (id == null) {
代码示例来源:origin: net.java.xades/jxades
try
if (!ref.validate(valContext))
内容来源于网络,如有侵权,请联系作者删除!