Class SecurityUtil


  • @Deprecated
    public class SecurityUtil
    extends java.lang.Object
    Deprecated.
    Will be removed in next minor release.
    Security utilities.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.String ORG_RESTLET_HTTPS_CLIENT_CERTS
      Deprecated.
      Key in the request attributes for the HTTPS client certificates.
    • Constructor Summary

      Constructors 
      Constructor Description
      SecurityUtil()
      Deprecated.
       
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static java.security.Principal getSslClientCertPrincipal​(Request request)
      Deprecated.
      Returns the Principal from the SSL client certificates (the first with a name).
      private static java.util.List<java.security.cert.X509Certificate> getSslClientCerts​(Request request)
      Deprecated.
      Returns the client certificates from the given Request.
      static boolean isSslClientCertAuth​(Request request)
      Deprecated.
      Checks, if the given request was authenticated by a SSL client certificate.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • ORG_RESTLET_HTTPS_CLIENT_CERTS

        private static final java.lang.String ORG_RESTLET_HTTPS_CLIENT_CERTS
        Deprecated.
        Key in the request attributes for the HTTPS client certificates.
        See Also:
        Constant Field Values
    • Constructor Detail

      • SecurityUtil

        public SecurityUtil()
        Deprecated.
    • Method Detail

      • getSslClientCertPrincipal

        public static java.security.Principal getSslClientCertPrincipal​(Request request)
        Deprecated.
        Returns the Principal from the SSL client certificates (the first with a name).
        Parameters:
        request - The Request to get the Principal from.
        Returns:
        The Principal, or null, if no one is found.
      • getSslClientCerts

        private static java.util.List<java.security.cert.X509Certificate> getSslClientCerts​(Request request)
        Deprecated.
        Returns the client certificates from the given Request.
        Parameters:
        request - The request to get the client certificates from
        Returns:
        the client certifucates. May be null.
      • isSslClientCertAuth

        public static boolean isSslClientCertAuth​(Request request)
        Deprecated.
        Checks, if the given request was authenticated by a SSL client certificate.
        Parameters:
        request - The Request to check
        Returns:
        true, if the given request was authenticated by a SSL client certificate, otherwise false.