public CodeSigningSignature unmarshall(JsonUnmarshallerContext context) throws Exception { CodeSigningSignature codeSigningSignature = new CodeSigningSignature(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.getCurrentToken(); if (token == null) token = context.nextToken(); if (token == VALUE_NULL) { return null; } while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("inlineDocument", targetDepth)) { context.nextToken(); codeSigningSignature.setInlineDocument(context.getUnmarshaller(java.nio.ByteBuffer.class).unmarshall(context)); } } else if (token == END_ARRAY || token == END_OBJECT) { if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; } } token = context.nextToken(); } return codeSigningSignature; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getInlineDocument() == null) ? 0 : getInlineDocument().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; }
@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; }
/** * <p> * A base64 encoded binary representation of the code signing signature. * </p> * <p> * The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. * Users of the SDK should not perform Base64 encoding on this field. * </p> * <p> * Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will * be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or * ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future * major version of the SDK. * </p> * * @param inlineDocument * A base64 encoded binary representation of the code signing signature. * @return Returns a reference to this object so that method calls can be chained together. */ public CodeSigningSignature withInlineDocument(java.nio.ByteBuffer inlineDocument) { setInlineDocument(inlineDocument); return this; }
return false; if (other.getSignature() != null && other.getSignature().equals(this.getSignature()) == false) return false; if (other.getCertificateChain() == null ^ this.getCertificateChain() == null)
/** * <p> * A base64 encoded binary representation of the code signing signature. * </p> * <p> * The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. * Users of the SDK should not perform Base64 encoding on this field. * </p> * <p> * Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will * be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or * ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future * major version of the SDK. * </p> * * @param inlineDocument * A base64 encoded binary representation of the code signing signature. * @return Returns a reference to this object so that method calls can be chained together. */ public CodeSigningSignature withInlineDocument(java.nio.ByteBuffer inlineDocument) { setInlineDocument(inlineDocument); return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CodeSigningSignature == false) return false; CodeSigningSignature other = (CodeSigningSignature) obj; if (other.getInlineDocument() == null ^ this.getInlineDocument() == null) return false; if (other.getInlineDocument() != null && other.getInlineDocument().equals(this.getInlineDocument()) == false) return false; return true; }
public CodeSigningSignature unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } CodeSigningSignature codeSigningSignature = new CodeSigningSignature(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("inlineDocument")) { codeSigningSignature.setInlineDocument(ByteBufferJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return codeSigningSignature; }
@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 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; }
/** * Marshall the given parameter object. */ public void marshall(CodeSigningSignature codeSigningSignature, ProtocolMarshaller protocolMarshaller) { if (codeSigningSignature == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(codeSigningSignature.getInlineDocument(), INLINEDOCUMENT_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
public CodeSigningSignature unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } CodeSigningSignature codeSigningSignature = new CodeSigningSignature(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("inlineDocument")) { codeSigningSignature.setInlineDocument(ByteBufferJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return codeSigningSignature; }
@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; }
return false; if (other.getSignature() != null && other.getSignature().equals(this.getSignature()) == false) return false; if (other.getCertificateChain() == null ^ this.getCertificateChain() == null)
/** * 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 (getInlineDocument() != null) sb.append("InlineDocument: ").append(getInlineDocument()); sb.append("}"); return sb.toString(); }
public CodeSigningSignature unmarshall(JsonUnmarshallerContext context) throws Exception { CodeSigningSignature codeSigningSignature = new CodeSigningSignature(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.getCurrentToken(); if (token == null) token = context.nextToken(); if (token == VALUE_NULL) { return null; } while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("inlineDocument", targetDepth)) { context.nextToken(); codeSigningSignature.setInlineDocument(context.getUnmarshaller(java.nio.ByteBuffer.class).unmarshall(context)); } } else if (token == END_ARRAY || token == END_OBJECT) { if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; } } token = context.nextToken(); } return codeSigningSignature; }
@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 + ((getInlineDocument() == null) ? 0 : getInlineDocument().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CodeSigningSignature == false) return false; CodeSigningSignature other = (CodeSigningSignature) obj; if (other.getInlineDocument() == null ^ this.getInlineDocument() == null) return false; if (other.getInlineDocument() != null && other.getInlineDocument().equals(this.getInlineDocument()) == false) return false; return true; } }