Package com.sun.xml.wss.impl.config

Examples of com.sun.xml.wss.impl.config.DeclarativeSecurityConfiguration


       */
       @SuppressWarnings("unchecked")
       private void augmentConfiguration(int requiredState, boolean modifyReceiverSettings, CallbackHandler handler, boolean debugON,
           String signAlias, String encryptAlias) throws PolicyGenerationException {
              MessagePolicy mPolicy = null;
              DeclarativeSecurityConfiguration dConfiguration = (DeclarativeSecurityConfiguration) _policy;
              boolean senderConfiguration = false;
              if (requiredState == EMPTY_POLICY_STATE)  {
                  if (modifyReceiverSettings) {
                      mPolicy = dConfiguration.receiverSettings();
                      mPolicy.removeAll();
                  } else {
                     mPolicy = dConfiguration.senderSettings();
                     mPolicy.removeAll();
                  }
                  if (debugON) {
                      mPolicy.dumpMessages(true);
                  }
                  return;
              }
              if (modifyReceiverSettings) {
                 mPolicy = dConfiguration.receiverSettings();
              } else {
                 mPolicy = dConfiguration.senderSettings();
                 senderConfiguration = !senderConfiguration;
              }
              Collection newMPolicy = null;
              WSSPolicy ts = getTimestampPolicy(mPolicy, handler, senderConfiguration);
              boolean requireTimestampPolicy = false;
View Full Code Here


                mPolicy = (MessagePolicy) dpCallback.getSecurityPolicy();
            }
           
        } else if (PolicyTypeUtil.declarativeSecurityConfiguration(policy)) {
           
            DeclarativeSecurityConfiguration dsc = (DeclarativeSecurityConfiguration) policy;
            mPolicy = dsc.receiverSettings();
        }
       
        return mPolicy;
    }
View Full Code Here

TOP

Related Classes of com.sun.xml.wss.impl.config.DeclarativeSecurityConfiguration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.