Examples of PolicyEngineData


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

     * @param wpd
     *            The WSS4J data to initialize
     */
    private static void asymmetricBinding(AsymmetricBinding binding,
            WSS4JPolicyData wpd) throws WSSPolicyException {
        PolicyEngineData ped = binding.getRecipientToken();
        PolicyEngineData ped1 = binding.getInitiatorToken();
        if (ped == null && ped1 == null) {
            // this is an error - throw something
        }
        AlgorithmSuite suite = binding.getAlgorithmSuite();
        wpd
View Full Code Here

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

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

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

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

      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

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

      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

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

  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

Examples of secParser.PolicyEngineData

     * @return The new topmost PolicyEngineData or null if the stack is empty.
     */
    public PolicyEngineData commitPolicyEngineData() {
        if (pedStackPointer > 1) {
            pedStackPointer--;
            PolicyEngineData ped = (PolicyEngineData) pedStack.get(pedStackPointer);
            pedStackPointer--;
            pedStack.add(pedStackPointer, ped);
            pedStackPointer++;
            return ped;
        } else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.