public static AuthorizationToken generateToken(String controller, String type, String id, String passcode) {
		if (type.equals(ComponentTypes.Authorization.NONE_FALSE.name())) {
			return new AuthorizationToken(controller, ComponentTypes.Authorization.NONE_FALSE);
		}
		else if (type.equals(ComponentTypes.Authorization.NONE_TRUE.name())) {
			return new AuthorizationToken(controller, ComponentTypes.Authorization.NONE_TRUE);
		}
		else if (type.equals(ComponentTypes.Authorization.TIMED.name())) {
			return new AuthorizationToken(controller, ComponentTypes.Authorization.TIMED);
		}
		else if (type.equals(ComponentTypes.Authorization.DB_PASSCODE.name())) {
			return new AuthorizationToken(controller, ComponentTypes.Authorization.DB_PASSCODE, passcode);
		}
		else if (type.equals(ComponentTypes.Authorization.DB_ID.name())) {
			return new AuthorizationToken(controller, ComponentTypes.Authorization.DB_ID, id);
		}
		else if (type.equals(ComponentTypes.Authorization.DB_USERNAME_PASSWORD.name())) {
			return new AuthorizationToken(controller, ComponentTypes.Authorization.DB_USERNAME_PASSWORD, id, passcode);
		}
		return null;
	}