/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getSignature() != null) sb.append("Signature: ").append(getSignature()).append(","); if (getCertificateChain() != null) sb.append("CertificateChain: ").append(getCertificateChain()).append(","); if (getHashAlgorithm() != null) sb.append("HashAlgorithm: ").append(getHashAlgorithm()).append(","); if (getSignatureAlgorithm() != null) sb.append("SignatureAlgorithm: ").append(getSignatureAlgorithm()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSignature() == null) ? 0 : getSignature().hashCode()); hashCode = prime * hashCode + ((getCertificateChain() == null) ? 0 : getCertificateChain().hashCode()); hashCode = prime * hashCode + ((getHashAlgorithm() == null) ? 0 : getHashAlgorithm().hashCode()); hashCode = prime * hashCode + ((getSignatureAlgorithm() == null) ? 0 : getSignatureAlgorithm().hashCode()); return hashCode; }
/** * Marshall the given parameter object. */ public void marshall(CustomCodeSigning customCodeSigning, ProtocolMarshaller protocolMarshaller) { if (customCodeSigning == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(customCodeSigning.getSignature(), SIGNATURE_BINDING); protocolMarshaller.marshall(customCodeSigning.getCertificateChain(), CERTIFICATECHAIN_BINDING); protocolMarshaller.marshall(customCodeSigning.getHashAlgorithm(), HASHALGORITHM_BINDING); protocolMarshaller.marshall(customCodeSigning.getSignatureAlgorithm(), SIGNATUREALGORITHM_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CustomCodeSigning == false) return false; CustomCodeSigning other = (CustomCodeSigning) obj; if (other.getSignature() == null ^ this.getSignature() == null) return false; if (other.getSignature() != null && other.getSignature().equals(this.getSignature()) == false) return false; if (other.getCertificateChain() == null ^ this.getCertificateChain() == null) return false; if (other.getCertificateChain() != null && other.getCertificateChain().equals(this.getCertificateChain()) == false) return false; if (other.getHashAlgorithm() == null ^ this.getHashAlgorithm() == null) return false; if (other.getHashAlgorithm() != null && other.getHashAlgorithm().equals(this.getHashAlgorithm()) == false) return false; if (other.getSignatureAlgorithm() == null ^ this.getSignatureAlgorithm() == null) return false; if (other.getSignatureAlgorithm() != null && other.getSignatureAlgorithm().equals(this.getSignatureAlgorithm()) == false) return false; return true; }
/** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getSignature() != null) sb.append("signature: " + getSignature() + ","); if (getCertificateChain() != null) sb.append("certificateChain: " + getCertificateChain() + ","); if (getHashAlgorithm() != null) sb.append("hashAlgorithm: " + getHashAlgorithm() + ","); if (getSignatureAlgorithm() != null) sb.append("signatureAlgorithm: " + getSignatureAlgorithm()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSignature() == null) ? 0 : getSignature().hashCode()); hashCode = prime * hashCode + ((getCertificateChain() == null) ? 0 : getCertificateChain().hashCode()); hashCode = prime * hashCode + ((getHashAlgorithm() == null) ? 0 : getHashAlgorithm().hashCode()); hashCode = prime * hashCode + ((getSignatureAlgorithm() == null) ? 0 : getSignatureAlgorithm().hashCode()); return hashCode; }
&& other.getHashAlgorithm().equals(this.getHashAlgorithm()) == false) return false; if (other.getSignatureAlgorithm() == null ^ this.getSignatureAlgorithm() == null) return false; if (other.getSignatureAlgorithm() != null && other.getSignatureAlgorithm().equals(this.getSignatureAlgorithm()) == false) return false; return true;
public void marshall(CustomCodeSigning customCodeSigning, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (customCodeSigning.getSignature() != null) { CodeSigningSignature signature = customCodeSigning.getSignature(); jsonWriter.name("signature"); CodeSigningSignatureJsonMarshaller.getInstance().marshall(signature, jsonWriter); } if (customCodeSigning.getCertificateChain() != null) { CodeSigningCertificateChain certificateChain = customCodeSigning.getCertificateChain(); jsonWriter.name("certificateChain"); CodeSigningCertificateChainJsonMarshaller.getInstance().marshall(certificateChain, jsonWriter); } if (customCodeSigning.getHashAlgorithm() != null) { String hashAlgorithm = customCodeSigning.getHashAlgorithm(); jsonWriter.name("hashAlgorithm"); jsonWriter.value(hashAlgorithm); } if (customCodeSigning.getSignatureAlgorithm() != null) { String signatureAlgorithm = customCodeSigning.getSignatureAlgorithm(); jsonWriter.name("signatureAlgorithm"); jsonWriter.value(signatureAlgorithm); } jsonWriter.endObject(); }
/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getSignature() != null) sb.append("Signature: ").append(getSignature()).append(","); if (getCertificateChain() != null) sb.append("CertificateChain: ").append(getCertificateChain()).append(","); if (getHashAlgorithm() != null) sb.append("HashAlgorithm: ").append(getHashAlgorithm()).append(","); if (getSignatureAlgorithm() != null) sb.append("SignatureAlgorithm: ").append(getSignatureAlgorithm()); sb.append("}"); return sb.toString(); }
/** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getSignature() != null) sb.append("signature: " + getSignature() + ","); if (getCertificateChain() != null) sb.append("certificateChain: " + getCertificateChain() + ","); if (getHashAlgorithm() != null) sb.append("hashAlgorithm: " + getHashAlgorithm() + ","); if (getSignatureAlgorithm() != null) sb.append("signatureAlgorithm: " + getSignatureAlgorithm()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSignature() == null) ? 0 : getSignature().hashCode()); hashCode = prime * hashCode + ((getCertificateChain() == null) ? 0 : getCertificateChain().hashCode()); hashCode = prime * hashCode + ((getHashAlgorithm() == null) ? 0 : getHashAlgorithm().hashCode()); hashCode = prime * hashCode + ((getSignatureAlgorithm() == null) ? 0 : getSignatureAlgorithm().hashCode()); return hashCode; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSignature() == null) ? 0 : getSignature().hashCode()); hashCode = prime * hashCode + ((getCertificateChain() == null) ? 0 : getCertificateChain().hashCode()); hashCode = prime * hashCode + ((getHashAlgorithm() == null) ? 0 : getHashAlgorithm().hashCode()); hashCode = prime * hashCode + ((getSignatureAlgorithm() == null) ? 0 : getSignatureAlgorithm().hashCode()); return hashCode; }
/** * Marshall the given parameter object. */ public void marshall(CustomCodeSigning customCodeSigning, ProtocolMarshaller protocolMarshaller) { if (customCodeSigning == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(customCodeSigning.getSignature(), SIGNATURE_BINDING); protocolMarshaller.marshall(customCodeSigning.getCertificateChain(), CERTIFICATECHAIN_BINDING); protocolMarshaller.marshall(customCodeSigning.getHashAlgorithm(), HASHALGORITHM_BINDING); protocolMarshaller.marshall(customCodeSigning.getSignatureAlgorithm(), SIGNATUREALGORITHM_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CustomCodeSigning == false) return false; CustomCodeSigning other = (CustomCodeSigning) obj; if (other.getSignature() == null ^ this.getSignature() == null) return false; if (other.getSignature() != null && other.getSignature().equals(this.getSignature()) == false) return false; if (other.getCertificateChain() == null ^ this.getCertificateChain() == null) return false; if (other.getCertificateChain() != null && other.getCertificateChain().equals(this.getCertificateChain()) == false) return false; if (other.getHashAlgorithm() == null ^ this.getHashAlgorithm() == null) return false; if (other.getHashAlgorithm() != null && other.getHashAlgorithm().equals(this.getHashAlgorithm()) == false) return false; if (other.getSignatureAlgorithm() == null ^ this.getSignatureAlgorithm() == null) return false; if (other.getSignatureAlgorithm() != null && other.getSignatureAlgorithm().equals(this.getSignatureAlgorithm()) == false) return false; return true; }
&& other.getHashAlgorithm().equals(this.getHashAlgorithm()) == false) return false; if (other.getSignatureAlgorithm() == null ^ this.getSignatureAlgorithm() == null) return false; if (other.getSignatureAlgorithm() != null && other.getSignatureAlgorithm().equals(this.getSignatureAlgorithm()) == false) return false; return true;
public void marshall(CustomCodeSigning customCodeSigning, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (customCodeSigning.getSignature() != null) { CodeSigningSignature signature = customCodeSigning.getSignature(); jsonWriter.name("signature"); CodeSigningSignatureJsonMarshaller.getInstance().marshall(signature, jsonWriter); } if (customCodeSigning.getCertificateChain() != null) { CodeSigningCertificateChain certificateChain = customCodeSigning.getCertificateChain(); jsonWriter.name("certificateChain"); CodeSigningCertificateChainJsonMarshaller.getInstance().marshall(certificateChain, jsonWriter); } if (customCodeSigning.getHashAlgorithm() != null) { String hashAlgorithm = customCodeSigning.getHashAlgorithm(); jsonWriter.name("hashAlgorithm"); jsonWriter.value(hashAlgorithm); } if (customCodeSigning.getSignatureAlgorithm() != null) { String signatureAlgorithm = customCodeSigning.getSignatureAlgorithm(); jsonWriter.name("signatureAlgorithm"); jsonWriter.value(signatureAlgorithm); } jsonWriter.endObject(); }