@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getPublicKey() == null) ? 0 : getPublicKey().hashCode()); hashCode = prime * hashCode + ((getPrivateKey() == null) ? 0 : getPrivateKey().hashCode()); return hashCode; }
public KeyPair unmarshall(JsonUnmarshallerContext context) throws Exception { KeyPair keyPair = new KeyPair(); if (context.testExpression("PublicKey", targetDepth)) { context.nextToken(); keyPair.setPublicKey(context.getUnmarshaller(String.class).unmarshall(context)); keyPair.setPrivateKey(context.getUnmarshaller(String.class).unmarshall(context));
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCertificateArn() == null) ? 0 : getCertificateArn().hashCode()); hashCode = prime * hashCode + ((getCertificateId() == null) ? 0 : getCertificateId().hashCode()); hashCode = prime * hashCode + ((getCertificatePem() == null) ? 0 : getCertificatePem().hashCode()); hashCode = prime * hashCode + ((getKeyPair() == null) ? 0 : getKeyPair().hashCode()); return hashCode; }
certResult.getKeyPair().getPrivateKey(), KEYSTORE_PATH, KEYSTORE_NAME,
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateKeysAndCertificateResult == false) return false; CreateKeysAndCertificateResult other = (CreateKeysAndCertificateResult) obj; if (other.getCertificateArn() == null ^ this.getCertificateArn() == null) return false; if (other.getCertificateArn() != null && other.getCertificateArn().equals(this.getCertificateArn()) == false) return false; if (other.getCertificateId() == null ^ this.getCertificateId() == null) return false; if (other.getCertificateId() != null && other.getCertificateId().equals(this.getCertificateId()) == false) return false; if (other.getCertificatePem() == null ^ this.getCertificatePem() == null) return false; if (other.getCertificatePem() != null && other.getCertificatePem().equals(this.getCertificatePem()) == false) return false; if (other.getKeyPair() == null ^ this.getKeyPair() == null) return false; if (other.getKeyPair() != null && other.getKeyPair().equals(this.getKeyPair()) == false) return false; return true; }
/** * <p> * The public key. * </p> * * @param publicKey * The public key. * @return Returns a reference to this object so that method calls can be chained together. */ public KeyPair withPublicKey(String publicKey) { setPublicKey(publicKey); return this; }
/** * <p> * The private key. * </p> * * @param privateKey * The private key. * @return Returns a reference to this object so that method calls can be chained together. */ public KeyPair withPrivateKey(String privateKey) { setPrivateKey(privateKey); return this; }
certResult.getKeyPair().getPrivateKey(), KEYSTORE_PATH, KEYSTORE_NAME,
if (other.getKeyPair() == null ^ this.getKeyPair() == null) return false; if (other.getKeyPair() != null && other.getKeyPair().equals(this.getKeyPair()) == false) return false; return true;
/** * <p> * The public key. * </p> * * @param publicKey * The public key. * @return Returns a reference to this object so that method calls can be chained together. */ public KeyPair withPublicKey(String publicKey) { setPublicKey(publicKey); return this; }
/** * <p> * The private key. * </p> * * @param privateKey * The private key. * @return Returns a reference to this object so that method calls can be chained together. */ public KeyPair withPrivateKey(String privateKey) { setPrivateKey(privateKey); return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof KeyPair == false) return false; KeyPair other = (KeyPair) obj; if (other.getPublicKey() == null ^ this.getPublicKey() == null) return false; if (other.getPublicKey() != null && other.getPublicKey().equals(this.getPublicKey()) == false) return false; if (other.getPrivateKey() == null ^ this.getPrivateKey() == null) return false; if (other.getPrivateKey() != null && other.getPrivateKey().equals(this.getPrivateKey()) == false) return false; return true; }
public KeyPair unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } KeyPair keyPair = new KeyPair(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("PublicKey")) { keyPair.setPublicKey(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("PrivateKey")) { keyPair.setPrivateKey(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return keyPair; }
certResult.getKeyPair().getPrivateKey(), KEYSTORE_PATH, KEYSTORE_NAME,
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCertificateArn() == null) ? 0 : getCertificateArn().hashCode()); hashCode = prime * hashCode + ((getCertificateId() == null) ? 0 : getCertificateId().hashCode()); hashCode = prime * hashCode + ((getCertificatePem() == null) ? 0 : getCertificatePem().hashCode()); hashCode = prime * hashCode + ((getKeyPair() == null) ? 0 : getKeyPair().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateKeysAndCertificateResult == false) return false; CreateKeysAndCertificateResult other = (CreateKeysAndCertificateResult) obj; if (other.getCertificateArn() == null ^ this.getCertificateArn() == null) return false; if (other.getCertificateArn() != null && other.getCertificateArn().equals(this.getCertificateArn()) == false) return false; if (other.getCertificateId() == null ^ this.getCertificateId() == null) return false; if (other.getCertificateId() != null && other.getCertificateId().equals(this.getCertificateId()) == false) return false; if (other.getCertificatePem() == null ^ this.getCertificatePem() == null) return false; if (other.getCertificatePem() != null && other.getCertificatePem().equals(this.getCertificatePem()) == false) return false; if (other.getKeyPair() == null ^ this.getKeyPair() == null) return false; if (other.getKeyPair() != null && other.getKeyPair().equals(this.getKeyPair()) == false) return false; return true; }
/** * 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 (getPublicKey() != null) sb.append("PublicKey: ").append(getPublicKey()).append(","); if (getPrivateKey() != null) sb.append("PrivateKey: ").append("***Sensitive Data Redacted***"); sb.append("}"); return sb.toString(); }
public KeyPair unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } KeyPair keyPair = new KeyPair(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("PublicKey")) { keyPair.setPublicKey(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("PrivateKey")) { keyPair.setPrivateKey(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return keyPair; }
certResult.getKeyPair().getPrivateKey(), KEYSTORE_PATH, KEYSTORE_NAME,
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCertificateArn() == null) ? 0 : getCertificateArn().hashCode()); hashCode = prime * hashCode + ((getCertificateId() == null) ? 0 : getCertificateId().hashCode()); hashCode = prime * hashCode + ((getCertificatePem() == null) ? 0 : getCertificatePem().hashCode()); hashCode = prime * hashCode + ((getKeyPair() == null) ? 0 : getKeyPair().hashCode()); return hashCode; }