Package org.pac4j.oauth.profile

Examples of org.pac4j.oauth.profile.JsonObject


   
    public JsonObject convert(final Object attribute) {
        if (attribute != null && (attribute instanceof String || attribute instanceof JsonNode)) {
            try {
                final Constructor<? extends JsonObject> constructor = this.clazz.getDeclaredConstructor();
                final JsonObject jsonObject = constructor.newInstance();
                jsonObject.buildFrom(attribute);
                return jsonObject;
            } catch (final Exception e) {
                logger.error("Cannot build JsonObject : {}", e, this.clazz);
            }
        }
View Full Code Here

TOP

Related Classes of org.pac4j.oauth.profile.JsonObject

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.