agave-common/common-core/src/main/java/org/iplantc/service/common/auth/AgaveGSSManagerImpl.java
/**
	 * Checks if the specified mechanism matches the mechanism supported by this
	 * implementation.
	 *
	 * @param mech
	 *            mechanism to check
	 * @exception GSSException
	 *                if mechanism not supported.
	 */
Checks if the specified mechanism matches the mechanism supported by this
implementation.

@param mech
mechanism to check
@exception GSSException
if mechanism not supported.
Checks if the specified mechanism matches the mechanism supported by this implementation . @param mech mechanism to check @exception GSSException if mechanism not supported .
public static void checkMechanism(Oid mech) throws GSSException {
		if (mech != null && !mech.equals(GSSConstants.MECH_OID)) {
			throw new GSSException(GSSException.BAD_MECH);
		}
	}
public static void checkMechanism ( Oid mech ) throws GSSException { if ( mech != null && ! mech . equals ( GSSConstants . MECH_OID ) ) { throw new GSSException ( GSSException . BAD_MECH ) ; } }
Checks if the specified mechanism matches the mechanism supported by this
 implementation.
Checks if the specified mechanism matches the mechanism supported by this implementation .