Package org.openid4java.message

Examples of org.openid4java.message.MessageException


    public void addAttribute(String alias, String typeUri, String value)
        throws MessageException
    {
        if ( alias.indexOf(',') > -1 || alias.indexOf('.') > -1 ||
             alias.indexOf(':') > -1 || alias.indexOf('\n') > -1 )
            throw new MessageException(
                "Characters [.,:\\n] are not allowed in attribute aliases: " + alias);

        int count = getCount(alias);

        String index = "";
View Full Code Here


            throws MessageException
    {
        StoreRequest req = new StoreRequest(params);

        if (! req.isValid())
            throw new MessageException("Invalid parameters for a store request");

        if (DEBUG)
            _log.debug("Created store request from parameter list:\n" + params);

        return req;
View Full Code Here

            throws MessageException
    {
        StoreResponse resp = new StoreResponse(params);

        if (! resp.isValid())
            throw new MessageException("Invalid parameters for a store response");

        if (DEBUG)
            _log.debug("Created store response from parameter list:\n" + params);

        return resp;
View Full Code Here

            throws MessageException
    {
        FetchRequest req = new FetchRequest(params);

        if (! req.isValid())
            throw new MessageException("Invalid parameters for a fetch request");

        if (DEBUG)
            _log.debug("Created fetch request from parameter list:\n" + params);

        return req;
View Full Code Here

                             boolean required, int count)
        throws MessageException
    {
        if ( alias.indexOf(',') > -1 || alias.indexOf('.') > -1 ||
             alias.indexOf(':') > -1 || alias.indexOf('\n') > -1 )
            throw new MessageException(
                "Characters [.,:\\n] are not allowed in attribute aliases: " + alias);

        _parameters.set(new Parameter("type." + alias, typeUri));

        String level = required ? "required" : "if_available";
View Full Code Here

        try
        {
            new URL(updateUrl);
        } catch (MalformedURLException e)
        {
            throw new MessageException("Invalid update_url: " + updateUrl);
        }

        if (DEBUG) _log.debug("Setting fetch request update_url: " + updateUrl);

        _parameters.set(new Parameter("update_url", updateUrl));
View Full Code Here

            throws MessageException
    {
        FetchResponse resp = new FetchResponse(params);

        if (! resp.isValid())
            throw new MessageException("Invalid parameters for a fetch response");

        if (DEBUG)
            _log.debug("Created fetch response from parameter list:\n" + params);

        return resp;
View Full Code Here

        try
        {
            new URL(updateUrl);
        } catch (MalformedURLException e)
        {
            throw new MessageException("Invalid update_url: " + updateUrl);
        }

        if (DEBUG) _log.debug("Setting fetch response update_url: " + updateUrl);

        _parameters.set(new Parameter("update_url", updateUrl));
View Full Code Here

            throws MessageException
    {
        StoreRequest req = new StoreRequest(params);

        if (! req.isValid())
            throw new MessageException("Invalid parameters for a store request");

        if (DEBUG)
            _log.debug("Created store request from parameter list:\n" + params);

        return req;
View Full Code Here

            throws MessageException
    {
        StoreResponse resp = new StoreResponse(params);

        if (! resp.isValid())
            throw new MessageException("Invalid parameters for a store response");

        if (DEBUG)
            _log.debug("Created store response from parameter list:\n" + params);

        return resp;
View Full Code Here

TOP

Related Classes of org.openid4java.message.MessageException

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.