HADOOP-11870. [JDK8] AuthenticationFilter, CertificateUtil, SignerSecretProviders, KeyAuthorizationKeyProvider Javadoc issues (rkanter)
This commit is contained in:
parent
6bae5962cd
commit
9fec02c069
|
@ -589,6 +589,13 @@ public class AuthenticationFilter implements Filter {
|
|||
/**
|
||||
* Delegates call to the servlet filter chain. Sub-classes my override this
|
||||
* method to perform pre and post tasks.
|
||||
*
|
||||
* @param filterChain the filter chain object.
|
||||
* @param request the request object.
|
||||
* @param response the response object.
|
||||
*
|
||||
* @throws IOException thrown if an IO error occurred.
|
||||
* @throws ServletException thrown if a processing error occurred.
|
||||
*/
|
||||
protected void doFilter(FilterChain filterChain, HttpServletRequest request,
|
||||
HttpServletResponse response) throws IOException, ServletException {
|
||||
|
@ -598,9 +605,15 @@ public class AuthenticationFilter implements Filter {
|
|||
/**
|
||||
* Creates the Hadoop authentication HTTP cookie.
|
||||
*
|
||||
* @param resp the response object.
|
||||
* @param token authentication token for the cookie.
|
||||
* @param domain the cookie domain.
|
||||
* @param path the cokie path.
|
||||
* @param expires UNIX timestamp that indicates the expire date of the
|
||||
* cookie. It has no effect if its value < 0.
|
||||
* @param isSecure is the cookie secure?
|
||||
* @param token the token.
|
||||
* @param expires the cookie expiration time.
|
||||
*
|
||||
* XXX the following code duplicate some logic in Jetty / Servlet API,
|
||||
* because of the fact that Hadoop is stuck at servlet 2.5 and jetty 6
|
||||
|
|
|
@ -36,7 +36,8 @@ public class CertificateUtil {
|
|||
*
|
||||
* @param pem
|
||||
* - the pem encoding from config without the header and footer
|
||||
* @return RSAPublicKey
|
||||
* @return RSAPublicKey the RSA public key
|
||||
* @throws ServletException thrown if a processing error occurred
|
||||
*/
|
||||
public static RSAPublicKey parseRSAPublicKey(String pem) throws ServletException {
|
||||
String fullPem = PEM_HEADER + pem + PEM_FOOTER;
|
||||
|
|
|
@ -61,7 +61,7 @@ public abstract class RolloverSignerSecretProvider
|
|||
* @param config configuration properties
|
||||
* @param servletContext servlet context
|
||||
* @param tokenValidity The amount of time a token is valid for
|
||||
* @throws Exception
|
||||
* @throws Exception thrown if an error occurred
|
||||
*/
|
||||
@Override
|
||||
public void init(Properties config, ServletContext servletContext,
|
||||
|
|
|
@ -34,7 +34,7 @@ public abstract class SignerSecretProvider {
|
|||
* @param config configuration properties
|
||||
* @param servletContext servlet context
|
||||
* @param tokenValidity The amount of time a token is valid for
|
||||
* @throws Exception
|
||||
* @throws Exception thrown if an error occurred
|
||||
*/
|
||||
public abstract void init(Properties config, ServletContext servletContext,
|
||||
long tokenValidity) throws Exception;
|
||||
|
|
|
@ -377,7 +377,7 @@ public class ZKSignerSecretProvider extends RolloverSignerSecretProvider {
|
|||
* This method creates the Curator client and connects to ZooKeeper.
|
||||
* @param config configuration properties
|
||||
* @return A Curator client
|
||||
* @throws Exception
|
||||
* @throws Exception thrown if an error occurred
|
||||
*/
|
||||
protected CuratorFramework createCuratorClient(Properties config)
|
||||
throws Exception {
|
||||
|
|
|
@ -573,6 +573,9 @@ Release 2.8.0 - UNRELEASED
|
|||
HADOOP-11876. Refactor code to make it more readable, minor
|
||||
maybePrintStats bug (Zoran Dimitrijevic via raviprak)
|
||||
|
||||
HADOOP-11870. [JDK8] AuthenticationFilter, CertificateUtil,
|
||||
SignerSecretProviders, KeyAuthorizationKeyProvider Javadoc issues (rkanter)
|
||||
|
||||
Release 2.7.1 - UNRELEASED
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -93,8 +93,8 @@ public class KeyAuthorizationKeyProvider extends KeyProviderCryptoExtension {
|
|||
* The constructor takes a {@link KeyProviderCryptoExtension} and an
|
||||
* implementation of <code>KeyACLs</code>. All calls are delegated to the
|
||||
* provider keyProvider after authorization check (if required)
|
||||
* @param keyProvider
|
||||
* @param acls
|
||||
* @param keyProvider the key provider
|
||||
* @param acls the Key ACLs
|
||||
*/
|
||||
public KeyAuthorizationKeyProvider(KeyProviderCryptoExtension keyProvider,
|
||||
KeyACLs acls) {
|
||||
|
|
Loading…
Reference in New Issue