Examples of SecurityPolicyToken


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

   * @throws NoSuchMethodException
   */
  private void initializeLayout(SecurityPolicyToken spt)
      throws NoSuchMethodException {

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

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

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

    tmpSpt = SecurityPolicy.laxTsLast.copy();
    tmpSpt.setProcessTokenMethod(this);
    spt.setChildToken(tmpSpt);
  }
View Full Code Here

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

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

    SecurityPolicyToken spt = spc.readCurrentSecurityToken();
    switch (spc.getAction()) {

    case SecurityProcessorContext.START:
      if (!initializedLayout) {
        try {
          initializeLayout(spt);
          initializedLayout = true;
        } catch (NoSuchMethodException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
          return new Boolean(false);
        }
      }
      log.debug(spt.getTokenName());
      PrimitiveAssertion pa = spc.getAssertion();
      String text = pa.getStrValue();
      if (text != null) {
        text = text.trim();
        log.debug("Value: '" + text.toString() + "'");
View Full Code Here

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

     */

    private void initializeAlgorithmSuite(SecurityPolicyToken spt)
            throws NoSuchMethodException {

        SecurityPolicyToken tmpSpt;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        tmpSpt = SecurityPolicy.xPathFilter20.copy();
        tmpSpt.setProcessTokenMethod(this);
        spt.setChildToken(tmpSpt);
    }
View Full Code Here

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

   *            The token that will hold the child tokens.
   * @throws NoSuchMethodException
   */
  private void initializeSupportingTokens(SecurityPolicyToken spt)
      throws NoSuchMethodException {
    SecurityPolicyToken tmpSpt = SecurityPolicy.x509Token.copy();
    tmpSpt.setProcessTokenMethod(new X509TokenProcessor());
    spt.setChildToken(tmpSpt);
   
    tmpSpt = SecurityPolicy.usernameToken.copy();
    tmpSpt.setProcessTokenMethod(new UsernameTokenProcessor());
    spt.setChildToken(tmpSpt);

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

    SignedPartsElementsProcessor spep = new SignedPartsElementsProcessor();
    tmpSpt = SecurityPolicy.signedParts.copy();
    tmpSpt.setProcessTokenMethod(spep);
    spt.setChildToken(tmpSpt);
   
    tmpSpt = SecurityPolicy.signedElements.copy();
    tmpSpt.setProcessTokenMethod(spep);   
    spt.setChildToken(tmpSpt);

    EncryptedPartsElementsProcessor epep = new EncryptedPartsElementsProcessor();
    tmpSpt = SecurityPolicy.encryptedParts.copy();
    tmpSpt.setProcessTokenMethod(epep);
    spt.setChildToken(tmpSpt);
   
    tmpSpt = SecurityPolicy.encryptedElements.copy();
    tmpSpt.setProcessTokenMethod(epep);
    spt.setChildToken(tmpSpt);

  }
View Full Code Here

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

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

    switch (spc.getAction()) {

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

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

   *            The token that will hold the child tokens.
   * @throws NoSuchMethodException
   */
  public void initializeTrust10(SecurityPolicyToken spt)
      throws NoSuchMethodException {
    SecurityPolicyToken tmpSpt = SecurityPolicy.mustSupportClientChallenge
        .copy();
    tmpSpt.setProcessTokenMethod(this);
    spt.setChildToken(tmpSpt);

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

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

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

    tmpSpt = SecurityPolicy.mustSupportIssuedTokens.copy();
    tmpSpt.setProcessTokenMethod(this);
    spt.setChildToken(tmpSpt);
  }
View Full Code Here

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

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

    SecurityPolicyToken spt = spc.readCurrentSecurityToken();

    switch (spc.getAction()) {

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

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

   *            The token that will hold the child tokens.
   * @throws NoSuchMethodException
   */
  private void initializeEndorsingSupportingTokens(SecurityPolicyToken spt)
      throws NoSuchMethodException {
    SecurityPolicyToken tmpSpt = SecurityPolicy.x509Token.copy();
    tmpSpt.setProcessTokenMethod(new X509TokenProcessor());
    spt.setChildToken(tmpSpt);
   
    tmpSpt = SecurityPolicy.usernameToken.copy();
    tmpSpt.setProcessTokenMethod(new UsernameTokenProcessor());
    spt.setChildToken(tmpSpt);

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

    SignedPartsElementsProcessor spep = new SignedPartsElementsProcessor();
    tmpSpt = SecurityPolicy.signedParts.copy();
    tmpSpt.setProcessTokenMethod(spep);
    spt.setChildToken(tmpSpt);
   
    tmpSpt = SecurityPolicy.signedElements.copy();
    tmpSpt.setProcessTokenMethod(spep);   
    spt.setChildToken(tmpSpt);

    EncryptedPartsElementsProcessor epep = new EncryptedPartsElementsProcessor();
    tmpSpt = SecurityPolicy.encryptedParts.copy();
    tmpSpt.setProcessTokenMethod(epep);
    spt.setChildToken(tmpSpt);
   
    tmpSpt = SecurityPolicy.encryptedElements.copy();
    tmpSpt.setProcessTokenMethod(epep);
    spt.setChildToken(tmpSpt);

  }
View Full Code Here

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

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

    switch (spc.getAction()) {

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

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

   *            The token that will hold the child tokens.
   * @throws NoSuchMethodException
   */
  private void initializeSignedParts(SecurityPolicyToken spt)
      throws NoSuchMethodException {
    SecurityPolicyToken tmpSpt = SecurityPolicy.body.copy();
    tmpSpt.setProcessTokenMethod(this);
    spt.setChildToken(tmpSpt);

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

  }
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.