Package org.apache.ws.secpolicy.model

Examples of org.apache.ws.secpolicy.model.KerberosToken


  /**
   *
   */
  public Assertion build(OMElement element, AssertionBuilderFactory arg1)
      throws IllegalArgumentException {
    KerberosToken kerberosToken = new KerberosToken(SPConstants.SP_V11);

    OMElement policyElement = element.getFirstElement();

    // Process token inclusion
    OMAttribute includeAttr = element.getAttribute(SP11Constants.INCLUDE_TOKEN);

    if (includeAttr != null) {
      int inclusion = SP11Constants.getInclusionFromAttributeValue(includeAttr
          .getAttributeValue());
      kerberosToken.setInclusion(inclusion);
    }

    if (policyElement != null) {
      Policy policy = PolicyEngine.getPolicy(element.getFirstElement());
      policy = (Policy) policy.normalize(false);
View Full Code Here


  /**
   *
   */
  public Assertion build(OMElement element, AssertionBuilderFactory arg1)
      throws IllegalArgumentException {
    KerberosToken kerberosToken = new KerberosToken(SPConstants.SP_V12);

    OMElement policyElement = element.getFirstElement();

    // Process token inclusion
    OMAttribute includeAttr = element.getAttribute(SP12Constants.INCLUDE_TOKEN);

    if (includeAttr != null) {
      int inclusion = SP11Constants.getInclusionFromAttributeValue(includeAttr
          .getAttributeValue());
      kerberosToken.setInclusion(inclusion);
    }

    if (policyElement != null) {
      Policy policy = PolicyEngine.getPolicy(element.getFirstElement());
      policy = (Policy) policy.normalize(false);
View Full Code Here

TOP

Related Classes of org.apache.ws.secpolicy.model.KerberosToken

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.