use of com.redhat.cloud.notifications.models.BasicAuthentication in project notifications-backend by RedHatInsights.
the class BasicAuthenticationConverter method convertToEntityAttribute.
@Override
public BasicAuthentication convertToEntityAttribute(String json) {
if (json == null) {
return null;
} else {
BasicAuthentication auth = Json.decodeValue(json, BasicAuthentication.class);
auth.setPassword(Base64Utils.decode(auth.getPassword()));
return auth;
}
}
Aggregations