Class SecurityUtil
- java.lang.Object
-
- org.restlet.ext.jaxrs.internal.util.SecurityUtil
-
@Deprecated public class SecurityUtil extends java.lang.ObjectDeprecated.Will be removed in next minor release.Security utilities.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringORG_RESTLET_HTTPS_CLIENT_CERTSDeprecated.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.PrincipalgetSslClientCertPrincipal(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 booleanisSslClientCertAuth(Request request)Deprecated.Checks, if the given request was authenticated by a SSL client certificate.
-
-
-
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
-
-
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.
-
-