/** * Overrides {@code Object.equals()}. * * @param object The object to compare to. * * @return {@code true} if the objects have the same value, otherwise * {@code false}. */ @Override public boolean equals(final Object object) { return object != null && object instanceof Base64 && this.toString().equals(object.toString()); }
public String getSecretBase64() { return Base64.encode(secret).toString(); }
public String getSecretBase64() { return Base64.encode(secret).toString(); }
sb.append(Base64.encode(cert.getEncoded()).toString()); } catch (CertificateEncodingException e) { return null;
jwk.setX5c(nimbusJwk.getX509CertChain().stream().map(cert -> cert.toString()).collect(Collectors.toSet()));