All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.citrix.netscaler.nitro.resource.config.aaa.aaapreauthenticationpolicy Maven / Gradle / Ivy

Go to download

The Citrix® NetScaler® NITRO client for Java allows you to configure and monitor the NetScaler appliance programmatically in Java based applications. Source code taken from Build 121 of NetScaler release 10.1

The newest version!
/*
* Copyright (c) 2008-2015 Citrix Systems, Inc.
*
*   Licensed under the Apache License, Version 2.0 (the "License");
*   you may not use this file except in compliance with the License.
*   You may obtain a copy of the License at
*
*       http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*   distributed under the License is distributed on an "AS IS" BASIS,
*   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*   See the License for the specific language governing permissions and
*   limitations under the License.
*/

package com.citrix.netscaler.nitro.resource.config.aaa;

import com.citrix.netscaler.nitro.resource.base.*;
import com.citrix.netscaler.nitro.service.nitro_service;
import com.citrix.netscaler.nitro.service.options;
import com.citrix.netscaler.nitro.util.*;
import com.citrix.netscaler.nitro.exception.nitro_exception;

class aaapreauthenticationpolicy_response extends base_response
{
	public aaapreauthenticationpolicy[] aaapreauthenticationpolicy;
}
/**
* Configuration for pre authentication policy resource.
*/

public class aaapreauthenticationpolicy extends base_resource
{
	private String name;
	private String rule;
	private String reqaction;

	//------- Read only Parameter ---------;

	private Long hits;
	private String[] builtin;
	private Long __count;

	/**
	* 
	* Name for the preauthentication policy. Must begin with a letter, number, or the underscore character (_), and must consist only of letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at sign (@), equals (=), colon (:), and underscore characters. Cannot be changed after the preauthentication policy is created.

The following requirement applies only to the NetScaler CLI:
If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, ?my policy? or ?my policy?).
Minimum length = 1 *
*/ public void set_name(String name) throws Exception{ this.name = name; } /** *
	* Name for the preauthentication policy. Must begin with a letter, number, or the underscore character (_), and must consist only of letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at sign (@), equals (=), colon (:), and underscore characters. Cannot be changed after the preauthentication policy is created.

The following requirement applies only to the NetScaler CLI:
If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, ?my policy? or ?my policy?).
Minimum length = 1 *
*/ public String get_name() throws Exception { return this.name; } /** *
	* Name of the NetScaler named rule, or a default syntax expression, defining connections that match the policy.
	* 
*/ public void set_rule(String rule) throws Exception{ this.rule = rule; } /** *
	* Name of the NetScaler named rule, or a default syntax expression, defining connections that match the policy.
	* 
*/ public String get_rule() throws Exception { return this.rule; } /** *
	* Name of the action that the policy is to invoke when a connection matches the policy.
Minimum length = 1 *
*/ public void set_reqaction(String reqaction) throws Exception{ this.reqaction = reqaction; } /** *
	* Name of the action that the policy is to invoke when a connection matches the policy.
Minimum length = 1 *
*/ public String get_reqaction() throws Exception { return this.reqaction; } /** *
	* No of hits.
	* 
*/ public Long get_hits() throws Exception { return this.hits; } /** *
	* Indicates that a variable is a built-in (SYSTEM INTERNAL) type.
Possible values = MODIFIABLE, DELETABLE, IMMUTABLE *
*/ public String[] get_builtin() throws Exception { return this.builtin; } /** *
	* converts nitro response into object and returns the object array in case of get request.
	* 
*/ protected base_resource[] get_nitro_response(nitro_service service, String response) throws Exception{ aaapreauthenticationpolicy_response result = (aaapreauthenticationpolicy_response) service.get_payload_formatter().string_to_resource(aaapreauthenticationpolicy_response.class, response); if(result.errorcode != 0) { if (result.errorcode == 444) { service.clear_session(); } if(result.severity != null) { if (result.severity.equals("ERROR")) throw new nitro_exception(result.message,result.errorcode); } else { throw new nitro_exception(result.message,result.errorcode); } } return result.aaapreauthenticationpolicy; } /** *
	* Returns the value of object identifier argument
	* 
*/ protected String get_object_name() { return this.name; } /** * Use this API to add aaapreauthenticationpolicy. */ public static base_response add(nitro_service client, aaapreauthenticationpolicy resource) throws Exception { aaapreauthenticationpolicy addresource = new aaapreauthenticationpolicy(); addresource.name = resource.name; addresource.rule = resource.rule; addresource.reqaction = resource.reqaction; return addresource.add_resource(client); } /** * Use this API to add aaapreauthenticationpolicy resources. */ public static base_responses add(nitro_service client, aaapreauthenticationpolicy resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { aaapreauthenticationpolicy addresources[] = new aaapreauthenticationpolicy[resources.length]; for (int i=0;i 0) { aaapreauthenticationpolicy deleteresources[] = new aaapreauthenticationpolicy[name.length]; for (int i=0;i 0) { aaapreauthenticationpolicy deleteresources[] = new aaapreauthenticationpolicy[resources.length]; for (int i=0;i 0) { aaapreauthenticationpolicy updateresources[] = new aaapreauthenticationpolicy[resources.length]; for (int i=0;i0) { aaapreauthenticationpolicy response[] = new aaapreauthenticationpolicy[name.length]; aaapreauthenticationpolicy obj[] = new aaapreauthenticationpolicy[name.length]; for (int i=0;i




© 2015 - 2024 Weber Informatics LLC | Privacy Policy