Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Corba > JacORB security...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 499 of 534
Post > Topic >>

JacORB security policies

by sachin.aghor@[EMAIL PROTECTED] Jun 28, 2007 at 04:27 AM

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




 1 Posts in Topic:
JacORB security policies
sachin.aghor@[EMAIL PROTE  2007-06-28 04:27:22 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed May 14 23:57:14 CDT 2008.