Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Ws Wiki" for change 
notification.

The following page has been changed by UlfDittmer:
http://wiki.apache.org/ws/FrontPage/WsFx/wss4jFAQ

------------------------------------------------------------------------------
          // An encryption or timestamp action does not have an associated 
principal,
          // only Signature and UsernameToken actions return a principal
          if ((eResult.getAction() == WSConstants.SIGN)
-                 || (eResult.getAction() == WSConstants.UT)) {
+             || (eResult.getAction() == WSConstants.UT)) {
-                 // Signature and UsernameToken actions return a principal
+             // Signature and UsernameToken actions return a principal
-                 System.out.println("Principal's name: " + 
eResult.getPrincipal().getName());
+             System.out.println("Principal's name: " + 
eResult.getPrincipal().getName());
          } else if (eResult.getAction() == WSConstants.ENCR) {
-                 // Encryption action returns what ?
+             // Encryption action returns what ?
          } else if (eResult.getAction() == WSConstants.TS) {
-                 // Timestamp action returns a Timestamp
+             // Timestamp action returns a Timestamp
-                 System.out.println("Timestamp created: " + 
eResult.getTimestamp().getCreated());
+             System.out.println("Timestamp created: " + 
eResult.getTimestamp().getCreated());
-                 System.out.println("Timestamp expires: " + 
eResult.getTimestamp().getExpires());
+             System.out.println("Timestamp expires: " + 
eResult.getTimestamp().getExpires());
          }
      }
  }

Reply via email to