com.sun.net.httpserver.Authenticator Java Examples
The following examples show how to use
com.sun.net.httpserver.Authenticator.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: HttpContextImpl.java From freehealth-connector with GNU Affero General Public License v3.0 | 6 votes |
HttpContextImpl(String protocol, String path, HttpHandler cb, ServerImpl server) { if (path != null && protocol != null && path.length() >= 1 && path.charAt(0) == '/') { this.protocol = protocol.toLowerCase(); this.path = path; if (!this.protocol.equals("http") && !this.protocol.equals("https")) { throw new IllegalArgumentException("Illegal value for protocol"); } else { this.handler = cb; this.server = server; this.authfilter = new AuthFilter((Authenticator)null); this.sfilters.add(this.authfilter); } } else { throw new IllegalArgumentException("Illegal value for path or protocol"); } }
Example #2
Source File: HttpContextImpl.java From freehealth-connector with GNU Affero General Public License v3.0 | 6 votes |
HttpContextImpl(String protocol, String path, HttpHandler cb, ServerImpl server) { if (path != null && protocol != null && path.length() >= 1 && path.charAt(0) == '/') { this.protocol = protocol.toLowerCase(); this.path = path; if (!this.protocol.equals("http") && !this.protocol.equals("https")) { throw new IllegalArgumentException("Illegal value for protocol"); } else { this.handler = cb; this.server = server; this.authfilter = new AuthFilter((Authenticator)null); this.sfilters.add(this.authfilter); } } else { throw new IllegalArgumentException("Illegal value for path or protocol"); } }
Example #3
Source File: HttpContextImpl.java From freehealth-connector with GNU Affero General Public License v3.0 | 6 votes |
HttpContextImpl(String protocol, String path, HttpHandler cb, ServerImpl server) { if (path != null && protocol != null && path.length() >= 1 && path.charAt(0) == '/') { this.protocol = protocol.toLowerCase(); this.path = path; if (!this.protocol.equals("http") && !this.protocol.equals("https")) { throw new IllegalArgumentException("Illegal value for protocol"); } else { this.handler = cb; this.server = server; this.authfilter = new AuthFilter((Authenticator)null); this.sfilters.add(this.authfilter); } } else { throw new IllegalArgumentException("Illegal value for path or protocol"); } }
Example #4
Source File: HttpContextImpl.java From freehealth-connector with GNU Affero General Public License v3.0 | 6 votes |
HttpContextImpl(String protocol, String path, HttpHandler cb, ServerImpl server) { if (path != null && protocol != null && path.length() >= 1 && path.charAt(0) == '/') { this.protocol = protocol.toLowerCase(); this.path = path; if (!this.protocol.equals("http") && !this.protocol.equals("https")) { throw new IllegalArgumentException("Illegal value for protocol"); } else { this.handler = cb; this.server = server; this.authfilter = new AuthFilter((Authenticator)null); this.sfilters.add(this.authfilter); } } else { throw new IllegalArgumentException("Illegal value for path or protocol"); } }
Example #5
Source File: AuthFilter.java From freehealth-connector with GNU Affero General Public License v3.0 | 4 votes |
public void setAuthenticator(Authenticator a) { this.authenticator = a; }
Example #6
Source File: AuthFilter.java From freehealth-connector with GNU Affero General Public License v3.0 | 3 votes |
public AuthFilter(Authenticator authenticator) { this.authenticator = authenticator; }
Example #7
Source File: AuthFilter.java From freehealth-connector with GNU Affero General Public License v3.0 | 3 votes |
public void setAuthenticator(Authenticator a) { this.authenticator = a; }
Example #8
Source File: AuthFilter.java From freehealth-connector with GNU Affero General Public License v3.0 | 3 votes |
public AuthFilter(Authenticator authenticator) { this.authenticator = authenticator; }
Example #9
Source File: HttpContextImpl.java From freehealth-connector with GNU Affero General Public License v3.0 | 3 votes |
public Authenticator getAuthenticator() { return this.authenticator; }
Example #10
Source File: HttpContextImpl.java From freehealth-connector with GNU Affero General Public License v3.0 | 3 votes |
public Authenticator setAuthenticator(Authenticator auth) { Authenticator old = this.authenticator; this.authenticator = auth; this.authfilter.setAuthenticator(auth); return old; }
Example #11
Source File: AuthFilter.java From freehealth-connector with GNU Affero General Public License v3.0 | 3 votes |
public AuthFilter(Authenticator authenticator) { this.authenticator = authenticator; }
Example #12
Source File: HttpContextImpl.java From freehealth-connector with GNU Affero General Public License v3.0 | 3 votes |
public Authenticator getAuthenticator() { return this.authenticator; }
Example #13
Source File: HttpContextImpl.java From freehealth-connector with GNU Affero General Public License v3.0 | 3 votes |
public Authenticator setAuthenticator(Authenticator auth) { Authenticator old = this.authenticator; this.authenticator = auth; this.authfilter.setAuthenticator(auth); return old; }
Example #14
Source File: AuthFilter.java From freehealth-connector with GNU Affero General Public License v3.0 | 3 votes |
public void setAuthenticator(Authenticator a) { this.authenticator = a; }
Example #15
Source File: HttpContextImpl.java From freehealth-connector with GNU Affero General Public License v3.0 | 3 votes |
public Authenticator getAuthenticator() { return this.authenticator; }
Example #16
Source File: HttpContextImpl.java From freehealth-connector with GNU Affero General Public License v3.0 | 3 votes |
public Authenticator setAuthenticator(Authenticator auth) { Authenticator old = this.authenticator; this.authenticator = auth; this.authfilter.setAuthenticator(auth); return old; }
Example #17
Source File: AuthFilter.java From freehealth-connector with GNU Affero General Public License v3.0 | 3 votes |
public void setAuthenticator(Authenticator a) { this.authenticator = a; }
Example #18
Source File: AuthFilter.java From freehealth-connector with GNU Affero General Public License v3.0 | 3 votes |
public AuthFilter(Authenticator authenticator) { this.authenticator = authenticator; }
Example #19
Source File: HttpContextImpl.java From freehealth-connector with GNU Affero General Public License v3.0 | 3 votes |
public Authenticator getAuthenticator() { return this.authenticator; }
Example #20
Source File: HttpContextImpl.java From freehealth-connector with GNU Affero General Public License v3.0 | 3 votes |
public Authenticator setAuthenticator(Authenticator auth) { Authenticator old = this.authenticator; this.authenticator = auth; this.authfilter.setAuthenticator(auth); return old; }
Example #21
Source File: SimpleHttpServerJaxWsServiceExporter.java From spring4-understanding with Apache License 2.0 | 2 votes |
/** * Register a common {@link com.sun.net.httpserver.Authenticator} to be * applied to all detected {@link javax.jws.WebService} annotated beans. */ public void setAuthenticator(Authenticator authenticator) { this.authenticator = authenticator; }
Example #22
Source File: SimpleHttpServerFactoryBean.java From lams with GNU General Public License v2.0 | 2 votes |
/** * Register a common {@link com.sun.net.httpserver.Authenticator} to be * applied to all locally registered {@link #setContexts contexts}. */ public void setAuthenticator(Authenticator authenticator) { this.authenticator = authenticator; }
Example #23
Source File: SimpleHttpServerJaxWsServiceExporter.java From lams with GNU General Public License v2.0 | 2 votes |
/** * Register a common {@link com.sun.net.httpserver.Authenticator} to be * applied to all detected {@link javax.jws.WebService} annotated beans. */ public void setAuthenticator(Authenticator authenticator) { this.authenticator = authenticator; }
Example #24
Source File: SimpleHttpServerFactoryBean.java From spring4-understanding with Apache License 2.0 | 2 votes |
/** * Register a common {@link com.sun.net.httpserver.Authenticator} to be * applied to all locally registered {@link #setContexts contexts}. */ public void setAuthenticator(Authenticator authenticator) { this.authenticator = authenticator; }
Example #25
Source File: SimpleHttpServerJaxWsServiceExporter.java From java-technology-stack with MIT License | 1 votes |
/** * Register a common {@link com.sun.net.httpserver.Authenticator} to be * applied to all detected {@link javax.jws.WebService} annotated beans. */ public void setAuthenticator(Authenticator authenticator) { this.authenticator = authenticator; }
Example #26
Source File: SimpleHttpServerFactoryBean.java From java-technology-stack with MIT License | 1 votes |
/** * Register a common {@link com.sun.net.httpserver.Authenticator} to be * applied to all locally registered {@link #setContexts contexts}. */ public void setAuthenticator(Authenticator authenticator) { this.authenticator = authenticator; }
Example #27
Source File: SimpleHttpServerJaxWsServiceExporter.java From spring-analysis-note with MIT License | 1 votes |
/** * Register a common {@link com.sun.net.httpserver.Authenticator} to be * applied to all detected {@link javax.jws.WebService} annotated beans. */ public void setAuthenticator(Authenticator authenticator) { this.authenticator = authenticator; }
Example #28
Source File: SimpleHttpServerFactoryBean.java From spring-analysis-note with MIT License | 1 votes |
/** * Register a common {@link com.sun.net.httpserver.Authenticator} to be * applied to all locally registered {@link #setContexts contexts}. */ public void setAuthenticator(Authenticator authenticator) { this.authenticator = authenticator; }