1 21 package org.jacorb.security.level2; 22 23 import org.omg.Security.*; 24 import org.omg.SecurityLevel2.*; 25 import org.omg.CORBA.*; 26 34 35 public class MechanismPolicyImpl 36 extends org.omg.CORBA.LocalObject 37 implements MechanismPolicy 38 { 39 40 private String [] mechanisms = null; 41 42 public MechanismPolicyImpl(String [] mechanisms) 43 { 44 this.mechanisms = mechanisms; 45 } 46 47 51 public String [] mechanisms() 52 { 53 return mechanisms; 54 } 55 56 58 62 public Policy copy() 63 { 64 return new MechanismPolicyImpl((String []) mechanisms.clone()); 65 } 66 67 70 public void destroy() 71 { 72 mechanisms = null; 73 } 74 75 79 public int policy_type() 80 { 81 return SecMechanismsPolicy.value; 82 } 83 } 85 86 87 88 89 90 | Popular Tags |