Back to index

nordugrid-arc-nox  1.1.0~rc6
ClientX509Delegation.java
Go to the documentation of this file.
00001 /* ----------------------------------------------------------------------------
00002  * This file was automatically generated by SWIG (http://www.swig.org).
00003  * Version 1.3.36
00004  *
00005  * Do not make changes to this file unless you know what you are doing--modify
00006  * the SWIG interface file instead.
00007  * ----------------------------------------------------------------------------- */
00008 
00009 package nordugrid.arc;
00010 
00011 public class ClientX509Delegation {
00012   private long swigCPtr;
00013   protected boolean swigCMemOwn;
00014 
00015   protected ClientX509Delegation(long cPtr, boolean cMemoryOwn) {
00016     swigCMemOwn = cMemoryOwn;
00017     swigCPtr = cPtr;
00018   }
00019 
00020   protected static long getCPtr(ClientX509Delegation obj) {
00021     return (obj == null) ? 0 : obj.swigCPtr;
00022   }
00023 
00024   protected void finalize() {
00025     delete();
00026   }
00027 
00028   public synchronized void delete() {
00029     if(swigCPtr != 0 && swigCMemOwn) {
00030       swigCMemOwn = false;
00031       arcJNI.delete_ClientX509Delegation(swigCPtr);
00032     }
00033     swigCPtr = 0;
00034   }
00035 
00036   public ClientX509Delegation() {
00037     this(arcJNI.new_ClientX509Delegation__SWIG_0(), true);
00038   }
00039 
00040   public ClientX509Delegation(BaseConfig cfg, URL url) {
00041     this(arcJNI.new_ClientX509Delegation__SWIG_1(BaseConfig.getCPtr(cfg), cfg, URL.getCPtr(url), url), true);
00042   }
00043 
00044   public boolean createDelegation(DelegationType deleg, SWIGTYPE_p_std__string delegation_id) {
00045     return arcJNI.ClientX509Delegation_createDelegation(swigCPtr, this, deleg.swigValue(), SWIGTYPE_p_std__string.getCPtr(delegation_id));
00046   }
00047 
00048   public boolean destroyDelegation(DelegationType deleg) {
00049     return arcJNI.ClientX509Delegation_destroyDelegation(swigCPtr, this, deleg.swigValue());
00050   }
00051 
00052   public boolean acquireDelegation(DelegationType deleg, SWIGTYPE_p_std__string delegation_cred, SWIGTYPE_p_std__string delegation_id, String cred_identity, String cred_delegator_ip, String username, String password) {
00053     return arcJNI.ClientX509Delegation_acquireDelegation__SWIG_0(swigCPtr, this, deleg.swigValue(), SWIGTYPE_p_std__string.getCPtr(delegation_cred), SWIGTYPE_p_std__string.getCPtr(delegation_id), cred_identity, cred_delegator_ip, username, password);
00054   }
00055 
00056   public boolean acquireDelegation(DelegationType deleg, SWIGTYPE_p_std__string delegation_cred, SWIGTYPE_p_std__string delegation_id, String cred_identity, String cred_delegator_ip, String username) {
00057     return arcJNI.ClientX509Delegation_acquireDelegation__SWIG_1(swigCPtr, this, deleg.swigValue(), SWIGTYPE_p_std__string.getCPtr(delegation_cred), SWIGTYPE_p_std__string.getCPtr(delegation_id), cred_identity, cred_delegator_ip, username);
00058   }
00059 
00060   public boolean acquireDelegation(DelegationType deleg, SWIGTYPE_p_std__string delegation_cred, SWIGTYPE_p_std__string delegation_id, String cred_identity, String cred_delegator_ip) {
00061     return arcJNI.ClientX509Delegation_acquireDelegation__SWIG_2(swigCPtr, this, deleg.swigValue(), SWIGTYPE_p_std__string.getCPtr(delegation_cred), SWIGTYPE_p_std__string.getCPtr(delegation_id), cred_identity, cred_delegator_ip);
00062   }
00063 
00064   public boolean acquireDelegation(DelegationType deleg, SWIGTYPE_p_std__string delegation_cred, SWIGTYPE_p_std__string delegation_id, String cred_identity) {
00065     return arcJNI.ClientX509Delegation_acquireDelegation__SWIG_3(swigCPtr, this, deleg.swigValue(), SWIGTYPE_p_std__string.getCPtr(delegation_cred), SWIGTYPE_p_std__string.getCPtr(delegation_id), cred_identity);
00066   }
00067 
00068   public boolean acquireDelegation(DelegationType deleg, SWIGTYPE_p_std__string delegation_cred, SWIGTYPE_p_std__string delegation_id) {
00069     return arcJNI.ClientX509Delegation_acquireDelegation__SWIG_4(swigCPtr, this, deleg.swigValue(), SWIGTYPE_p_std__string.getCPtr(delegation_cred), SWIGTYPE_p_std__string.getCPtr(delegation_id));
00070   }
00071 
00072 }