Example usage for javax.xml.crypto.dsig SignedInfo getId

List of usage examples for javax.xml.crypto.dsig SignedInfo getId

Introduction

In this page you can find the example usage for javax.xml.crypto.dsig SignedInfo getId.

Prototype

String getId();

Source Link

Document

Returns the optional Id attribute of this SignedInfo.

Usage

From source file:org.apache.jcp.xml.dsig.internal.dom.DOMSignedInfo.java

@Override
public boolean equals(Object o) {
    if (this == o) {
        return true;
    }//from  w w  w .j av  a2s .  c  om

    if (!(o instanceof SignedInfo)) {
        return false;
    }
    SignedInfo osi = (SignedInfo) o;

    boolean idEqual = (id == null ? osi.getId() == null : id.equals(osi.getId()));

    return (canonicalizationMethod.equals(osi.getCanonicalizationMethod())
            && signatureMethod.equals(osi.getSignatureMethod()) && references.equals(osi.getReferences())
            && idEqual);
}