Class IsySicherheitUtil

java.lang.Object
de.bund.bva.isyfact.sicherheit.util.IsySicherheitUtil

@Deprecated public final class IsySicherheitUtil extends Object
Deprecated.
in favor of spring-web and spring-security-web
This class contains utility methods for isy-sicherheit.
  • Constructor Details

    • IsySicherheitUtil

      public IsySicherheitUtil()
      Deprecated.
  • Method Details

    • parseBasicAuthHeader

      @Deprecated public static String[] parseBasicAuthHeader(javax.servlet.http.HttpServletRequest request)
      Deprecated.
      use org.springframework.security.web.authentication.www.BasicAuthenticationConverter instead
      Reads the http header for http basic authentication and determines user identification and password.
      Parameters:
      request - the HTTP request
      Returns:
      String array with length two, containing username and password. Contains zero elements if the header is not set.
    • parseBasisAuthHeaderValue

      @Deprecated public static String[] parseBasisAuthHeaderValue(String headerValue)
      Deprecated.
      use org.springframework.security.web.authentication.www.BasicAuthenticationConverter instead
      Determines the user identification and password from the value of the http header attribute for the http basic authentication.
      Parameters:
      headerValue - Value of the header attribute
      Returns:
      String array with length two, containing username and password. Contains zero elements if the value of the header attribute is empty.
    • createBasicAuthHeader

      @Deprecated public static String[] createBasicAuthHeader(String loginId, String password)
      Deprecated.
      use HttpHeaders instead
      Creates a http basic authentication header for a login id and password.
      Parameters:
      loginId - The login id
      password - The password
      Returns:
      String array with length two, containing header attribute ([0]) and header value ([1]).