Back to index

nordugrid-arc-nox  1.1.0~rc6
SecAttr.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 SecAttr {
00012   private long swigCPtr;
00013   protected boolean swigCMemOwn;
00014 
00015   protected SecAttr(long cPtr, boolean cMemoryOwn) {
00016     swigCMemOwn = cMemoryOwn;
00017     swigCPtr = cPtr;
00018   }
00019 
00020   protected static long getCPtr(SecAttr 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_SecAttr(swigCPtr);
00032     }
00033     swigCPtr = 0;
00034   }
00035 
00036   public static void setUNDEFINED(SecAttrFormat value) {
00037     arcJNI.SecAttr_UNDEFINED_set(SecAttrFormat.getCPtr(value), value);
00038   }
00039 
00040   public static SecAttrFormat getUNDEFINED() {
00041     long cPtr = arcJNI.SecAttr_UNDEFINED_get();
00042     return (cPtr == 0) ? null : new SecAttrFormat(cPtr, false);
00043   }
00044 
00045   public static void setARCAuth(SecAttrFormat value) {
00046     arcJNI.SecAttr_ARCAuth_set(SecAttrFormat.getCPtr(value), value);
00047   }
00048 
00049   public static SecAttrFormat getARCAuth() {
00050     long cPtr = arcJNI.SecAttr_ARCAuth_get();
00051     return (cPtr == 0) ? null : new SecAttrFormat(cPtr, false);
00052   }
00053 
00054   public static void setXACML(SecAttrFormat value) {
00055     arcJNI.SecAttr_XACML_set(SecAttrFormat.getCPtr(value), value);
00056   }
00057 
00058   public static SecAttrFormat getXACML() {
00059     long cPtr = arcJNI.SecAttr_XACML_get();
00060     return (cPtr == 0) ? null : new SecAttrFormat(cPtr, false);
00061   }
00062 
00063   public static void setSAML(SecAttrFormat value) {
00064     arcJNI.SecAttr_SAML_set(SecAttrFormat.getCPtr(value), value);
00065   }
00066 
00067   public static SecAttrFormat getSAML() {
00068     long cPtr = arcJNI.SecAttr_SAML_get();
00069     return (cPtr == 0) ? null : new SecAttrFormat(cPtr, false);
00070   }
00071 
00072   public static void setGACL(SecAttrFormat value) {
00073     arcJNI.SecAttr_GACL_set(SecAttrFormat.getCPtr(value), value);
00074   }
00075 
00076   public static SecAttrFormat getGACL() {
00077     long cPtr = arcJNI.SecAttr_GACL_get();
00078     return (cPtr == 0) ? null : new SecAttrFormat(cPtr, false);
00079   }
00080 
00081   public SecAttr() {
00082     this(arcJNI.new_SecAttr(), true);
00083   }
00084 
00085   public boolean toBool() {
00086     return arcJNI.SecAttr_toBool(swigCPtr, this);
00087   }
00088 
00089   public boolean Export(SecAttrFormat format, SWIGTYPE_p_std__string val) {
00090     return arcJNI.SecAttr_Export__SWIG_0(swigCPtr, this, SecAttrFormat.getCPtr(format), format, SWIGTYPE_p_std__string.getCPtr(val));
00091   }
00092 
00093   public boolean Export(SecAttrFormat format, XMLNode val) {
00094     return arcJNI.SecAttr_Export__SWIG_1(swigCPtr, this, SecAttrFormat.getCPtr(format), format, XMLNode.getCPtr(val), val);
00095   }
00096 
00097   public boolean Import(SecAttrFormat format, String val) {
00098     return arcJNI.SecAttr_Import__SWIG_0(swigCPtr, this, SecAttrFormat.getCPtr(format), format, val);
00099   }
00100 
00101   public boolean Import(SecAttrFormat format, XMLNode val) {
00102     return arcJNI.SecAttr_Import__SWIG_1(swigCPtr, this, SecAttrFormat.getCPtr(format), format, XMLNode.getCPtr(val), val);
00103   }
00104 
00105 }