@@ -0,0 +1,2612 @@
+/*%0A * Copyright 2009 University Corporation for Advanced Internet Development, Inc.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A * http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage edu.internet2.middleware.openid.common;%0A%0Aimport javax.xml.namespace.QName;%0A%0A/**%0A * OpenID Constants.%0A */%0Apublic class OpenIDConstants %7B%0A%0A    /** OpenID 2.0 Namespace URI. */%0A    public static final String OPENID_20_NS = %22http://specs.openid.net/auth/2.0%22;%0A%0A    /**%0A     * OpenID parameters.%0A     */%0A    public static enum Parameter %7B%0A%0A        /** Namespace. */%0A        ns,%0A%0A        /** Mode. */%0A        mode,%0A%0A        /** Association type. */%0A        assoc_type,%0A%0A        /** OpenID Provider endpoint URL. */%0A        op_endpoint,%0A%0A        /** Claimed ID. */%0A        claimed_id,%0A%0A        /** Identity. */%0A        identity,%0A%0A        /** Return-to URL. */%0A        return_to,%0A%0A        /** Response nonece. */%0A        response_nonce,%0A%0A        /** Invalidate handle. */%0A        invalidate_handle,%0A%0A        /** Signed parameters. */%0A        signed,%0A%0A        /** Signature. */%0A        sig,%0A%0A        /** Realm. */%0A        realm,%0A%0A        /** Session type. */%0A        session_type,%0A%0A        /** Diffie-Hellman modulus. */%0A        dh_modulus,%0A%0A        /** Diffie-Hellman generator. */%0A        dh_gen,%0A%0A        /** Relying party's Diffie-Hellman public key. */%0A        dh_consumer_public,%0A%0A        /** Association handle. */%0A        assoc_handle,%0A%0A        /** Lifetime of response. */%0A        expires_in,%0A%0A        /** MAC key. */%0A        mac_key,%0A%0A        /** OpenID provider's Diffie-Hellman public key. */%0A        dh_server_public,%0A%0A        /** Encrypted MAC key. */%0A        enc_mac_key,%0A%0A        /** Error message. */%0A        error,%0A%0A        /** Error code. */%0A        error_code,%0A%0A        /** Contact. */%0A        contact,%0A%0A        /** Reference. */%0A        reference,%0A%0A        /** Is Valid. */%0A        is_valid;%0A%0A        /** QName. */%0A        public final QName QNAME;%0A%0A        /** Constructor. */%0A        Parameter() %7B%0A            this.QNAME = new QName(OPENID_20_NS, this.toString());%0A        %7D%0A%0A    %7D%0A%0A    /** Constructor. */%0A    private OpenIDConstants() %7B%0A    %7D%0A%0A%7D

use QNames for message parameters