本文整理了Java中javax.xml.crypto.dsig.Reference.getDigestValue
方法的一些代码示例,展示了Reference.getDigestValue
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Reference.getDigestValue
方法的具体详情如下:
包路径:javax.xml.crypto.dsig.Reference
类名称:Reference
方法名:getDigestValue
[英]Returns the digest value of this Reference
.
[中]返回此Reference
的摘要值。
代码示例来源:origin: org.apache.poi/poi-ooxml
List<Reference> manifestReferences = manifest.getReferences();
for (Reference manifestReference : manifestReferences) {
if (manifestReference.getDigestValue() != null) {
continue;
代码示例来源:origin: org.apache.santuario/xmlsec
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (!(o instanceof Reference)) {
return false;
}
Reference oref = (Reference)o;
boolean idsEqual = id == null ? oref.getId() == null
: id.equals(oref.getId());
boolean urisEqual = uri == null ? oref.getURI() == null
: uri.equals(oref.getURI());
boolean typesEqual = type == null ? oref.getType() == null
: type.equals(oref.getType());
boolean digestValuesEqual =
Arrays.equals(digestValue, oref.getDigestValue());
return digestMethod.equals(oref.getDigestMethod()) && idsEqual &&
urisEqual && typesEqual &&
allTransforms.equals(oref.getTransforms()) && digestValuesEqual;
}
代码示例来源:origin: org.apache.juddi/juddi-client
String expectedDigValStr = digestToString(ref.getDigestValue());
logger.warn(" Calc Digest: " + calcDigValStr);
logger.warn("Expected Digest: " + expectedDigValStr);
代码示例来源:origin: org.apache.juddi/uddi-tck-base
String expectedDigValStr = digestToString(ref.getDigestValue());
System.out.println(" Calc Digest: " + calcDigValStr);
System.out.println("Expected Digest: " + expectedDigValStr);
代码示例来源:origin: com.hynnet/xws-security
byte [] originalDigest = ref.getDigestValue();
if(logger.isLoggable(Level.FINEST)){
logger.log(Level.FINEST, LogStringsMessages.WSS_1763_ACTUAL_DEGEST_VALUE(new String(originalDigest)));
代码示例来源:origin: be.fedict.eid-dss/eid-dss-document-zip
String referenceUri = reference.getURI();
LOG.debug("ds:Reference URI: " + referenceUri);
byte[] digestValue = reference.getDigestValue();
代码示例来源:origin: be.fedict.eid-applet/eid-applet-service-signer
List<Reference> manifestReferences = manifest.getReferences();
for (Reference manifestReference : manifestReferences) {
if (null != manifestReference.getDigestValue()) {
continue;
代码示例来源:origin: org.apache.wss4j/wss4j-ws-security-dom
ref.setAlgorithm(signatureMethod);
ref.setDigestAlgorithm(reference.getDigestMethod().getAlgorithm());
ref.setDigestValue(reference.getDigestValue());
代码示例来源:origin: org.apache.wss4j/wss4j-ws-security-dom
ref.setAlgorithm(signedInfo.getSignatureMethod().getAlgorithm());
ref.setDigestAlgorithm(siRef.getDigestMethod().getAlgorithm());
ref.setDigestValue(siRef.getDigestValue());
ref.setAttachment(attachment);
代码示例来源:origin: be.fedict.eid-dss/eid-dss-document-xml
byte[] digestValue = reference.getDigestValue();
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi
List<Reference> manifestReferences = manifest.getReferences();
for (Reference manifestReference : manifestReferences) {
if (manifestReference.getDigestValue() != null) {
continue;
内容来源于网络,如有侵权,请联系作者删除!