Bug 5245 - Javadoc bugs in org.globus.gsi.CertUtil
: Javadoc bugs in org.globus.gsi.CertUtil
Status: RESOLVED FIXED
: CoG jglobus
documentation
: 1.4
: All All
: P3 normal
: ---
Assigned To:
:
:
:
:
  Show dependency treegraph
 
Reported: 2007-04-25 13:48 by
Modified: 2007-08-15 11:01 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2007-04-25 13:48:16
Some javadoc typos in org.globus.gsi.CertUtil (with suggested fixes):

OLD:
    /**
     * Determines if a specified certificate type indicates a GSI-2 or
     * GSI-3 proxy certificate.
     *
     * @param certType the certificate type to check.
     * @return true if certType is a GSI-2 or GSI-3 proxy, false 
     *         otherwise.
     */
    public static boolean isProxy(int certType) {
        return (isGsi2Proxy(certType) ||
                isGsi3Proxy(certType) ||
                isGsi4Proxy(certType));
    }
NEW:
    /**
     * Determines if a specified certificate type indicates a GSI-2,
     * GSI-3, or GSI-4 proxy certificate.
     *
     * @param certType the certificate type to check.
     * @return true if certType is a GSI-2, GSI-3, or GSI-4 proxy, 
     *         false otherwise.
     */
    public static boolean isProxy(int certType) {
        return (isGsi2Proxy(certType) ||
                isGsi3Proxy(certType) ||
                isGsi4Proxy(certType));
    }
OLD: 
    /**
     * Determines if a specified certificate type indicates a 
     * GSI-4 proxy certificate.
     *
     * @param certType the certificate type to check.
     * @return true if certType is a GSI-3 proxy, false 
     *         otherwise.
     */
    public static boolean isGsi4Proxy(int certType) {
        return (certType == GSIConstants.GSI_4_IMPERSONATION_PROXY ||
                certType == GSIConstants.GSI_4_INDEPENDENT_PROXY ||
                certType == GSIConstants.GSI_4_RESTRICTED_PROXY ||
                certType == GSIConstants.GSI_4_LIMITED_PROXY);
    }
NEW:
    /**
     * Determines if a specified certificate type indicates a 
     * GSI-4 proxy certificate.
     *
     * @param certType the certificate type to check.
     * @return true if certType is a GSI-4 proxy, false 
     *         otherwise.
     */
    public static boolean isGsi4Proxy(int certType) {
        return (certType == GSIConstants.GSI_4_IMPERSONATION_PROXY ||
                certType == GSIConstants.GSI_4_INDEPENDENT_PROXY ||
                certType == GSIConstants.GSI_4_RESTRICTED_PROXY ||
                certType == GSIConstants.GSI_4_LIMITED_PROXY);
    }
OLD:
    /**
     * Determines if a specified certificate type indicates a 
     * GSI-2 or GSI-3 limited proxy certificate.
     *
     * @param certType the certificate type to check.
     * @return true if certType is a GSI-2 or GSI-3 limited proxy, 
     *         false otherwise.
     */
    public static boolean isLimitedProxy(int certType) {
        return (certType == GSIConstants.GSI_3_LIMITED_PROXY ||
                certType == GSIConstants.GSI_2_LIMITED_PROXY ||
                certType == GSIConstants.GSI_4_LIMITED_PROXY);
    }
NEW:
    /**
     * Determines if a specified certificate type indicates a 
     * GSI-2, GSI-3, or GSI-4 limited proxy certificate.
     *
     * @param certType the certificate type to check.
     * @return true if certType is a GSI-2, GSI-3, or GSI-4 
     *         limited proxy, false otherwise.
     */
    public static boolean isLimitedProxy(int certType) {
        return (certType == GSIConstants.GSI_3_LIMITED_PROXY ||
                certType == GSIConstants.GSI_2_LIMITED_PROXY ||
                certType == GSIConstants.GSI_4_LIMITED_PROXY);
    }
OLD:
    /**
     * Determines if a specified certificate type indicates a 
     *  GSI-3 or GS-4 limited proxy certificate.
     *
     * @param certType the certificate type to check.
     * @return true if certType is a GSI-3 or GSI-4 independent proxy, 
     *         false otherwise.
     */
    public static boolean isIndependentProxy(int certType) {
        return (certType == GSIConstants.GSI_3_INDEPENDENT_PROXY ||
                certType == GSIConstants.GSI_4_INDEPENDENT_PROXY);
    }
NEW:
    /**
     * Determines if a specified certificate type indicates a 
     *  GSI-3 or GS-4 independent proxy certificate.
     *
     * @param certType the certificate type to check.
     * @return true if certType is a GSI-3 or GSI-4 independent proxy, 
     *         false otherwise.
     */
    public static boolean isIndependentProxy(int certType) {
        return (certType == GSIConstants.GSI_3_INDEPENDENT_PROXY ||
                certType == GSIConstants.GSI_4_INDEPENDENT_PROXY);
    }
OLD:
    /**
     * Determines if a specified certificate type indicates a 
     * GSI-2 or GSI-3 impersonation proxy certificate.
     *
     * @param certType the certificate type to check.
     * @return true if certType is a GSI-2 or GSI-3 impersonation proxy, 
     *         false otherwise.
     */
    public static boolean isImpersonationProxy(int certType) {
        return (certType == GSIConstants.GSI_3_IMPERSONATION_PROXY ||
                certType == GSIConstants.GSI_3_LIMITED_PROXY ||
                certType == GSIConstants.GSI_4_IMPERSONATION_PROXY ||
                certType == GSIConstants.GSI_4_LIMITED_PROXY ||
                certType == GSIConstants.GSI_2_LIMITED_PROXY ||
                certType == GSIConstants.GSI_2_PROXY);
    }
NEW:
    /**
     * Determines if a specified certificate type indicates a 
     * GSI-2, GSI-3, or GSI-4 impersonation proxy certificate.
     *
     * @param certType the certificate type to check.
     * @return true if certType is a GSI-2, GSI-3, or GSI-4 
     *         impersonation proxy, false otherwise.
     */
    public static boolean isImpersonationProxy(int certType) {
        return (certType == GSIConstants.GSI_3_IMPERSONATION_PROXY ||
                certType == GSIConstants.GSI_3_LIMITED_PROXY ||
                certType == GSIConstants.GSI_4_IMPERSONATION_PROXY ||
                certType == GSIConstants.GSI_4_LIMITED_PROXY ||
                certType == GSIConstants.GSI_2_LIMITED_PROXY ||
                certType == GSIConstants.GSI_2_PROXY);
    }
------- Comment #1 From 2007-08-15 11:01:06 -------
Fixes committed in trunk and globus_4_0_branch. Updated jars in Java WS Core
repository.

Tom, thanks for reporting this.