com.citrix.netscaler.nitro.resource.config.authentication.authenticationnegotiateaction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nitro Show documentation
Show all versions of nitro Show documentation
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.authentication;
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 authenticationnegotiateaction_response extends base_response
{
public authenticationnegotiateaction[] authenticationnegotiateaction;
}
/**
* Configuration for Negotiate action resource.
*/
public class authenticationnegotiateaction extends base_resource
{
private String name;
private String domain;
private String domainuser;
private String domainuserpasswd;
private String ou;
private String defaultauthenticationgroup;
private String keytab;
//------- Read only Parameter ---------;
private String kcdspn;
private Long __count;
/**
*
* Name for the AD KDC server profile (negotiate action).
Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Cannot be changed after AD KDC server profile 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 authentication action? or ?my authentication action?).
Minimum length = 1
*
*/
public void set_name(String name) throws Exception{
this.name = name;
}
/**
*
* Name for the AD KDC server profile (negotiate action).
Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Cannot be changed after AD KDC server profile 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 authentication action? or ?my authentication action?).
Minimum length = 1
*
*/
public String get_name() throws Exception {
return this.name;
}
/**
*
* Domain name of the AD KDC server.
Minimum length = 1
*
*/
public void set_domain(String domain) throws Exception{
this.domain = domain;
}
/**
*
* Domain name of the AD KDC server.
Minimum length = 1
*
*/
public String get_domain() throws Exception {
return this.domain;
}
/**
*
* User name that the NetScaler appliance uses to join the AD KDC server domain.
The NetScaler appliance uses the domain user name to check the health of the AD KDC server.
Minimum length = 1
*
*/
public void set_domainuser(String domainuser) throws Exception{
this.domainuser = domainuser;
}
/**
*
* User name that the NetScaler appliance uses to join the AD KDC server domain.
The NetScaler appliance uses the domain user name to check the health of the AD KDC server.
Minimum length = 1
*
*/
public String get_domainuser() throws Exception {
return this.domainuser;
}
/**
*
* Password that the NetScaler appliance uses to join the AD KDC server domain.
Minimum length = 1
*
*/
public void set_domainuserpasswd(String domainuserpasswd) throws Exception{
this.domainuserpasswd = domainuserpasswd;
}
/**
*
* Password that the NetScaler appliance uses to join the AD KDC server domain.
Minimum length = 1
*
*/
public String get_domainuserpasswd() throws Exception {
return this.domainuserpasswd;
}
/**
*
* Active Directory organizational units (OU) attribute.
Minimum length = 1
*
*/
public void set_ou(String ou) throws Exception{
this.ou = ou;
}
/**
*
* Active Directory organizational units (OU) attribute.
Minimum length = 1
*
*/
public String get_ou() throws Exception {
return this.ou;
}
/**
*
* This is the default group that is chosen when the authentication succeeds in addition to extracted groups.
Maximum length = 64
*
*/
public void set_defaultauthenticationgroup(String defaultauthenticationgroup) throws Exception{
this.defaultauthenticationgroup = defaultauthenticationgroup;
}
/**
*
* This is the default group that is chosen when the authentication succeeds in addition to extracted groups.
Maximum length = 64
*
*/
public String get_defaultauthenticationgroup() throws Exception {
return this.defaultauthenticationgroup;
}
/**
*
* The path to the keytab file.
*
*/
public void set_keytab(String keytab) throws Exception{
this.keytab = keytab;
}
/**
*
* The path to the keytab file.
*
*/
public String get_keytab() throws Exception {
return this.keytab;
}
/**
*
* Host SPN extracted from keytab file.
*
*/
public String get_kcdspn() throws Exception {
return this.kcdspn;
}
/**
*
* 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{
authenticationnegotiateaction_response result = (authenticationnegotiateaction_response) service.get_payload_formatter().string_to_resource(authenticationnegotiateaction_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.authenticationnegotiateaction;
}
/**
*
* Returns the value of object identifier argument
*
*/
protected String get_object_name() {
return this.name;
}
/**
* Use this API to add authenticationnegotiateaction.
*/
public static base_response add(nitro_service client, authenticationnegotiateaction resource) throws Exception {
authenticationnegotiateaction addresource = new authenticationnegotiateaction();
addresource.name = resource.name;
addresource.domain = resource.domain;
addresource.domainuser = resource.domainuser;
addresource.domainuserpasswd = resource.domainuserpasswd;
addresource.ou = resource.ou;
addresource.defaultauthenticationgroup = resource.defaultauthenticationgroup;
addresource.keytab = resource.keytab;
return addresource.add_resource(client);
}
/**
* Use this API to add authenticationnegotiateaction resources.
*/
public static base_responses add(nitro_service client, authenticationnegotiateaction resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
authenticationnegotiateaction addresources[] = new authenticationnegotiateaction[resources.length];
for (int i=0;i 0) {
authenticationnegotiateaction deleteresources[] = new authenticationnegotiateaction[name.length];
for (int i=0;i 0) {
authenticationnegotiateaction deleteresources[] = new authenticationnegotiateaction[resources.length];
for (int i=0;i 0) {
authenticationnegotiateaction updateresources[] = new authenticationnegotiateaction[resources.length];
for (int i=0;i 0) {
authenticationnegotiateaction unsetresources[] = new authenticationnegotiateaction[name.length];
for (int i=0;i 0) {
authenticationnegotiateaction unsetresources[] = new authenticationnegotiateaction[resources.length];
for (int i=0;i0) {
authenticationnegotiateaction response[] = new authenticationnegotiateaction[name.length];
authenticationnegotiateaction obj[] = new authenticationnegotiateaction[name.length];
for (int i=0;i