Package secParser

Examples of secParser.SecurityPolicyToken


   *            The token that will hold the child tokens.
   * @throws NoSuchMethodException
   */
  private void initializeSignedSupportingTokens(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


  public Object doSignedSupportingTokens(SecurityProcessorContext spc) {
    System.out.println("Processing "
        + spc.readCurrentSecurityToken().getTokenName() + ": "
        + SecurityProcessorContext.ACTION_NAMES[spc.getAction()]);
    SecurityPolicyToken spt = spc.readCurrentSecurityToken();

    switch (spc.getAction()) {

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

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

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

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

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

  public Object doWss10(SecurityProcessorContext spc) {
    System.out.println("Processing "
        + spc.readCurrentSecurityToken().getTokenName() + ": "
        + SecurityProcessorContext.ACTION_NAMES[spc.getAction()]);

    SecurityPolicyToken spt = spc.readCurrentSecurityToken();

    switch (spc.getAction()) {

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

   *            The token that will hold the child tokens.
   * @throws NoSuchMethodException
   */
  private void initializeSignatureToken(SecurityPolicyToken spt)
      throws NoSuchMethodException {
    SecurityPolicyToken tmpSpt = SecurityPolicy.x509Token.copy();
    tmpSpt.setProcessTokenMethod(new X509TokenProcessor());
    spt.setChildToken(tmpSpt);
  }
View Full Code Here

   *            The token that will hold the child tokens.
   * @throws NoSuchMethodException
   */
  private void initializeEncryptionToken(SecurityPolicyToken spt)
      throws NoSuchMethodException {
    SecurityPolicyToken tmpSpt = SecurityPolicy.x509Token.copy();
    tmpSpt.setProcessTokenMethod(new X509TokenProcessor());
    spt.setChildToken(tmpSpt);
  }
View Full Code Here

   *            The token that will hold the child tokens.
   * @throws NoSuchMethodException
   */
  private void initializeProtectionToken(SecurityPolicyToken spt)
      throws NoSuchMethodException {
    SecurityPolicyToken tmpSpt = SecurityPolicy.x509Token.copy();
    tmpSpt.setProcessTokenMethod(new X509TokenProcessor());
    spt.setChildToken(tmpSpt);
  }
View Full Code Here

  public Object doSignatureToken(SecurityProcessorContext spc) {
    System.out.println("Processing "
        + spc.readCurrentSecurityToken().getTokenName() + ": "
        + SecurityProcessorContext.ACTION_NAMES[spc.getAction()]);
    SecurityPolicyToken spt = spc.readCurrentSecurityToken();

    switch (spc.getAction()) {

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

  public Object doEncryptionToken(SecurityProcessorContext spc) {
    System.out.println("Processing "
        + spc.readCurrentSecurityToken().getTokenName() + ": "
        + SecurityProcessorContext.ACTION_NAMES[spc.getAction()]);
    SecurityPolicyToken spt = spc.readCurrentSecurityToken();
    switch (spc.getAction()) {

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

  public Object doProtectionToken(SecurityProcessorContext spc) {
    System.out.println("Processing "
        + spc.readCurrentSecurityToken().getTokenName() + ": "
        + SecurityProcessorContext.ACTION_NAMES[spc.getAction()]);
    SecurityPolicyToken spt = spc.readCurrentSecurityToken();
    switch (spc.getAction()) {

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

TOP

Related Classes of secParser.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.