Class WSSecurityPropagationHelper


  • public class WSSecurityPropagationHelper
    extends java.lang.Object
    This class provides some helper methods to retrieve the user information from an LTPA token.
    Since:
    5.1.1
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static ValidationResult validateToken​(byte[] token)
      This method validates an LTPA token and will return a ValidationResult object.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WSSecurityPropagationHelper

        public WSSecurityPropagationHelper()
    • Method Detail

      • validateToken

        public static ValidationResult validateToken​(byte[] token)
                                              throws com.ibm.websphere.security.auth.ValidationFailedException

        This method validates an LTPA token and will return a ValidationResult object. If the token cannot be validated, is expired or null, a ValidationFailedException will be thrown.

        The validateToken API requires a Java 2 Security permission, WebSphereRuntimePermission "validateLTPAToken".
        Parameters:
        byte - [] (LtpaToken2)
        Returns:
        ValidationResult
        Throws:
        com.ibm.websphere.security.auth.ValidationFailedException