FileDocCategorySizeDatePackage
SignerId.javaAPI DocBouncy Castle Crypto API 1.41 (Java 1.5)1117Wed Oct 01 10:55:28 BST 2008org.bouncycastle.cms

SignerId

public class SignerId extends X509CertSelector
a basic index for a signer.

Fields Summary
Constructors Summary
Methods Summary
public booleanequals(java.lang.Object o)

        if (!(o instanceof SignerId))
        {
            return false;
        }

        SignerId id = (SignerId)o;

        return Arrays.areEqual(this.getSubjectKeyIdentifier(), id.getSubjectKeyIdentifier())
            && equalsObj(this.getSerialNumber(), id.getSerialNumber())
            && equalsObj(this.getIssuerAsString(), id.getIssuerAsString());
    
private booleanequalsObj(java.lang.Object a, java.lang.Object b)

        return (a != null) ? a.equals(b) : b == null;
    
public inthashCode()

        int code = Arrays.hashCode(this.getSubjectKeyIdentifier());

        if (this.getSerialNumber() != null)
        {
            code ^= this.getSerialNumber().hashCode();
        }

        if (this.getIssuerAsString() != null)
        {
            code ^= this.getIssuerAsString().hashCode();
        }

        return code;