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 InvocationCredentialsPolicyImpl 36 extends org.omg.CORBA.LocalObject 37 implements InvocationCredentialsPolicy 38 { 39 private Credentials[] creds = null; 40 41 public InvocationCredentialsPolicyImpl(Credentials[] creds) 42 { 43 this.creds = creds; 44 } 45 46 public Credentials[] creds() 47 { 48 return creds; 49 } 50 51 53 57 public Policy copy() 58 { 59 Credentials[] new_creds = new Credentials[creds.length]; 60 for(int i = 0; i < new_creds.length; i++) 61 new_creds[i] = creds[i].copy(); 62 63 return new InvocationCredentialsPolicyImpl(new_creds); 64 } 65 66 69 public void destroy() 70 { 71 creds = null; 72 } 73 74 78 public int policy_type() 79 { 80 return SecInvocationCredentialsPolicy.value; 81 } 82 } 84 85 86 87 88 89 | Popular Tags |