Package org.apache.ws.security.policy.parser

Examples of org.apache.ws.security.policy.parser.SecurityPolicyToken


  public Object doInitiatorToken(SecurityProcessorContext spc) {
    log.debug("Processing "
        + spc.readCurrentSecurityToken().getTokenName() + ": "
        + SecurityProcessorContext.ACTION_NAMES[spc.getAction()]);
    SecurityPolicyToken spt = spc.readCurrentSecurityToken();

    switch (spc.getAction()) {

    case SecurityProcessorContext.START:
      if (!initializedInitiatorToken) {
View Full Code Here


  public Object doRecipientToken(SecurityProcessorContext spc) {
    log.debug("Processing "
        + spc.readCurrentSecurityToken().getTokenName() + ": "
        + SecurityProcessorContext.ACTION_NAMES[spc.getAction()]);
    SecurityPolicyToken spt = spc.readCurrentSecurityToken();
    switch (spc.getAction()) {

    case SecurityProcessorContext.START:
      if (!initializedRecipientToken) {
        try {
View Full Code Here

   */
  private void initializeSymmetricBinding(SecurityPolicyToken spt)
      throws NoSuchMethodException {

    SignEncProtectTokenProcessor sept = new SignEncProtectTokenProcessor();
    SecurityPolicyToken tmpSpt = SecurityPolicy.encryptionToken.copy();
    tmpSpt.setProcessTokenMethod(sept);
    spt.setChildToken(tmpSpt);

    tmpSpt = SecurityPolicy.signatureToken.copy();
    tmpSpt.setProcessTokenMethod(sept);
    spt.setChildToken(tmpSpt);

    tmpSpt = SecurityPolicy.protectionToken.copy();
    tmpSpt.setProcessTokenMethod(sept);
    spt.setChildToken(tmpSpt);

    tmpSpt = SecurityPolicy.algorithmSuite.copy();
    tmpSpt.setProcessTokenMethod(new AlgorithmSuiteProcessor());
    spt.setChildToken(tmpSpt);

    tmpSpt = SecurityPolicy.layout.copy();
    tmpSpt.setProcessTokenMethod(new LayoutProcessor());
    spt.setChildToken(tmpSpt);

//    tmpSpt = SecurityPolicy.supportingTokens.copy();
//    tmpSpt.setProcessTokenMethod(new SupportingTokensProcessor());
//    spt.setChildToken(tmpSpt);
//
//    tmpSpt = SecurityPolicy.signedSupportingTokens.copy();
//    tmpSpt.setProcessTokenMethod(new SignedSupportingTokensProcessor());
//    spt.setChildToken(tmpSpt);
//
//    tmpSpt = SecurityPolicy.endorsingSupportingTokens.copy();
//    tmpSpt.setProcessTokenMethod(new EndorsingSupportingTokensProcessor());
//    spt.setChildToken(tmpSpt);
//
//    tmpSpt = SecurityPolicy.signedEndorsingSupportingTokens.copy();
//    tmpSpt.setProcessTokenMethod(new SignedEndorsingSupportingTokensProcessor());
//    spt.setChildToken(tmpSpt);

    tmpSpt = SecurityPolicy.includeTimestamp.copy();
    tmpSpt.setProcessTokenMethod(this);
    spt.setChildToken(tmpSpt);

    tmpSpt = SecurityPolicy.encryptBeforeSigning.copy();
    tmpSpt.setProcessTokenMethod(this);
    spt.setChildToken(tmpSpt);

        tmpSpt = SecurityPolicy.signBeforeEncrypting.copy();
        tmpSpt.setProcessTokenMethod(this);
        spt.setChildToken(tmpSpt);

    tmpSpt = SecurityPolicy.encryptSignature.copy();
    tmpSpt.setProcessTokenMethod(this);
    spt.setChildToken(tmpSpt);

    tmpSpt = SecurityPolicy.protectTokens.copy();
    tmpSpt.setProcessTokenMethod(this);
    spt.setChildToken(tmpSpt);

    tmpSpt = SecurityPolicy.onlySignEntireHeadersAndBody.copy();
    tmpSpt.setProcessTokenMethod(this);
    spt.setChildToken(tmpSpt);

  }
View Full Code Here

  public Object doSymmetricBinding(SecurityProcessorContext spc) {
    log.debug("Processing "
        + spc.readCurrentSecurityToken().getTokenName() + ": "
        + SecurityProcessorContext.ACTION_NAMES[spc.getAction()]);
    SecurityPolicyToken spt = spc.readCurrentSecurityToken();

    switch (spc.getAction()) {

    case SecurityProcessorContext.START:
      if (!initializedSymmetricBinding) {
View Full Code Here

TOP

Related Classes of org.apache.ws.security.policy.parser.SecurityPolicyToken

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.