Package org.apache.ws.security.policy.model

Examples of org.apache.ws.security.policy.model.PolicyEngineData


      if (!initializedSignedElements) {
        try {
          initializeSignedElements(spt);
                    SignedEncryptedElements elements = (SignedEncryptedElements) spc
                            .readCurrentPolicyEngineData();
                    PolicyEngineData parent = spc
                            .readPreviousPolicyEngineData();
                    if (parent instanceof SupportingToken) {
                        // Parent is a supporting token
                        ((SupportingToken) parent)
                                .setSignedElements(elements);
View Full Code Here


      if (!initializedEncryptedParts) {
        try {
          initializeEncryptedParts(spt);
                    SignedEncryptedParts parts = (SignedEncryptedParts) spc
                            .readCurrentPolicyEngineData();
                    PolicyEngineData parent = spc.readPreviousPolicyEngineData();
                    if(parent instanceof SupportingToken) {
                        //Parent is a supporting token
                        ((SupportingToken)parent).setEncryptedParts(parts);
                    }
          initializedEncryptedParts = true;
View Full Code Here

      if (!initializedEncryptedElements) {
        try {
          initializeEncryptedElements(spt);
                    SignedEncryptedElements elements = (SignedEncryptedElements) spc
                            .readCurrentPolicyEngineData();
                    PolicyEngineData parent = spc
                            .readPreviousPolicyEngineData();
                    if (parent instanceof SupportingToken) {
                        // Parent is a supporting token
                        ((SupportingToken) parent).setEncryptedElements(elements);
                    }
View Full Code Here

  public Object doEncryptSignature(SecurityProcessorContext spc) {
      log.debug("Processing "
        + spc.readCurrentSecurityToken().getTokenName() + ": "
        + SecurityProcessorContext.ACTION_NAMES[spc.getAction()]);
        if(spc.getAction() == SecurityProcessorContext.START) {     
          PolicyEngineData readCurrentPolicyEngineData = spc.readCurrentPolicyEngineData();
          ((SymmetricBinding) readCurrentPolicyEngineData).setSignatureProtection(true);
        }
    return new Boolean(true);
  }
View Full Code Here

TOP

Related Classes of org.apache.ws.security.policy.model.PolicyEngineData

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.