Hi
I wanted to set Security Policies in Java code I am using jacorb
instead of java orb.
Any no_protection = m_orb.create_any();
no_protection.insert_Value(org.omg.Security.QOP.SecQOPIntegrityAndConfidentiality);
org.omg.CORBA.Policy p1 =
m_orb.create_policy(15,no_protection);
EstablishTrust trust=new EstablishTrust();
trust.trust_in_client=false;
trust.trust_in_target=false;
Any any_trust = m_orb.create_any();
any_trust.insert_Value(trust);
org.omg.CORBA.Policy p2 = m_orb.create_policy(39,any_trust);
objStatsPump._set_policy_override(new Policy[]
{p1,p2},org.omg.CORBA.SetOverrideType.SET_OVERRIDE);
This code compiles but fails at run time giving Policy Error in
ORB.java at 630 line
I looked in to the ORB.java in jacorb and found that it does not
implement SecQOPPolicy :(
Can any one help me on this?
Thanks in advanced
Regards