001 package org.omg.Security; 002 003 004 /** 005 * org/omg/Security/QOP.java . 006 * Generated by the IDL-to-Java compiler (portable), version "3.2" 007 * from /home/iurt/rpm/BUILD/geronimo-spec-corba/src/main/idl/Security.idl 008 * Saturday, November 26, 2011 9:53:35 PM UTC 009 */ 010 011 012 // for an object reference and used to protect messages 013 public class QOP implements org.omg.CORBA.portable.IDLEntity 014 { 015 private int __value; 016 private static int __size = 4; 017 private static org.omg.Security.QOP[] __array = new org.omg.Security.QOP [__size]; 018 019 public static final int _SecQOPNoProtection = 0; 020 public static final org.omg.Security.QOP SecQOPNoProtection = new org.omg.Security.QOP(_SecQOPNoProtection); 021 public static final int _SecQOPIntegrity = 1; 022 public static final org.omg.Security.QOP SecQOPIntegrity = new org.omg.Security.QOP(_SecQOPIntegrity); 023 public static final int _SecQOPConfidentiality = 2; 024 public static final org.omg.Security.QOP SecQOPConfidentiality = new org.omg.Security.QOP(_SecQOPConfidentiality); 025 public static final int _SecQOPIntegrityAndConfidentiality = 3; 026 public static final org.omg.Security.QOP SecQOPIntegrityAndConfidentiality = new org.omg.Security.QOP(_SecQOPIntegrityAndConfidentiality); 027 028 public int value () 029 { 030 return __value; 031 } 032 033 public static org.omg.Security.QOP from_int (int value) 034 { 035 if (value >= 0 && value < __size) 036 return __array[value]; 037 else 038 throw new org.omg.CORBA.BAD_PARAM (); 039 } 040 041 protected QOP (int value) 042 { 043 __value = value; 044 __array[__value] = this; 045 } 046 } // class QOP