Package org.openid4java.message

Examples of org.openid4java.message.MessageException


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

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

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

        return resp;
View Full Code Here


    public void addAttribute(String attr, String value) throws MessageException
    {
        _parameters.set(new Parameter(attr, value));

        if (! SREG_FIELDS.contains(attr))
            throw new MessageException("Invalid attribute for SReg: " + attr);

        if (DEBUG)
            _log.debug("Added new attribute to SReg response: " + attr +
                       " value: " + value);
    }
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
    {
        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

        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
    {
        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
    {
        PapeRequest req = new PapeRequest(params);

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

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

        return req;
View Full Code Here

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

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

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

        return resp;
View Full Code Here

    }

    public void setNistAuthLevel(int level) throws MessageException
    {
        if (level < 0 || level > 4)
            throw new MessageException("Invalid NIST level: " + level);

        set("nist_auth_level", Integer.toString(level));
    }
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.