format/cleanup and copyright

pull/477/head
Justin Richer 2013-07-29 11:28:51 -04:00
parent d4b544d519
commit e658ffd7fc
173 changed files with 1701 additions and 1468 deletions

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -14,6 +13,8 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
******************************************************************************/ ******************************************************************************/
package org.mitre.oauth2.introspectingfilter; package org.mitre.oauth2.introspectingfilter;
import java.util.Collection; import java.util.Collection;

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -14,6 +13,8 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
******************************************************************************/ ******************************************************************************/
package org.mitre.oauth2.introspectingfilter; package org.mitre.oauth2.introspectingfilter;
import java.util.Date; import java.util.Date;

View File

@ -1,3 +1,20 @@
/*******************************************************************************
* Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
******************************************************************************/
/** /**
* *
*/ */

View File

@ -1,3 +1,20 @@
/*******************************************************************************
* Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
******************************************************************************/
/** /**
* *
*/ */

View File

@ -1,11 +1,26 @@
/*******************************************************************************
* Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
******************************************************************************/
/** /**
* *
*/ */
package org.mitre.oauth2.introspectingfilter; package org.mitre.oauth2.introspectingfilter;
import java.text.ParseException; import java.text.ParseException;
import java.util.HashSet;
import java.util.Set;
import org.mitre.openid.connect.client.service.ServerConfigurationService; import org.mitre.openid.connect.client.service.ServerConfigurationService;
import org.mitre.openid.connect.config.ServerConfiguration; import org.mitre.openid.connect.config.ServerConfiguration;
@ -48,30 +63,30 @@ public class JWTParsingIntrospectionUrlProvider implements IntrospectionUrlProvi
public String getIntrospectionUrl(String accessToken) { public String getIntrospectionUrl(String accessToken) {
try { try {
JWT jwt = JWTParser.parse(accessToken); JWT jwt = JWTParser.parse(accessToken);
String issuer = jwt.getJWTClaimsSet().getIssuer(); String issuer = jwt.getJWTClaimsSet().getIssuer();
if (!Strings.isNullOrEmpty(issuer)) { if (!Strings.isNullOrEmpty(issuer)) {
ServerConfiguration server = serverConfigurationService.getServerConfiguration(issuer); ServerConfiguration server = serverConfigurationService.getServerConfiguration(issuer);
if (server != null) { if (server != null) {
if (!Strings.isNullOrEmpty(server.getIntrospectionEndpointUri())) { if (!Strings.isNullOrEmpty(server.getIntrospectionEndpointUri())) {
return server.getIntrospectionEndpointUri(); return server.getIntrospectionEndpointUri();
} else { } else {
throw new IllegalArgumentException("Server does not have Introspection Endpoint defined"); throw new IllegalArgumentException("Server does not have Introspection Endpoint defined");
} }
} else { } else {
throw new IllegalArgumentException("Could not find server configuration for issuer " + issuer); throw new IllegalArgumentException("Could not find server configuration for issuer " + issuer);
} }
} else { } else {
throw new IllegalArgumentException("No issuer claim found in JWT"); throw new IllegalArgumentException("No issuer claim found in JWT");
} }
} catch (ParseException e) { } catch (ParseException e) {
throw new IllegalArgumentException("Unable to parse JWT", e); throw new IllegalArgumentException("Unable to parse JWT", e);
} }
} }

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -14,6 +13,8 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
******************************************************************************/ ******************************************************************************/
package org.mitre.oauth2.introspectingfilter; package org.mitre.oauth2.introspectingfilter;
import java.text.DateFormat; import java.text.DateFormat;

View File

@ -1,3 +1,20 @@
/*******************************************************************************
* Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
******************************************************************************/
/** /**
* *
*/ */

View File

@ -1,3 +1,20 @@
/*******************************************************************************
* Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
******************************************************************************/
/** /**
* *
*/ */

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -14,6 +13,8 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
******************************************************************************/ ******************************************************************************/
/** /**
* *
*/ */

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -14,6 +13,8 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
******************************************************************************/ ******************************************************************************/
package org.mitre.openid.connect.client; package org.mitre.openid.connect.client;
import java.io.IOException; import java.io.IOException;

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -14,6 +13,8 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
******************************************************************************/ ******************************************************************************/
package org.mitre.openid.connect.client; package org.mitre.openid.connect.client;
import java.util.Collection; import java.util.Collection;

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -14,6 +13,8 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
******************************************************************************/ ******************************************************************************/
/** /**
* *
*/ */

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -14,6 +13,8 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
******************************************************************************/ ******************************************************************************/
package org.mitre.openid.connect.client; package org.mitre.openid.connect.client;
import org.apache.http.client.HttpClient; import org.apache.http.client.HttpClient;

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -14,6 +13,8 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
******************************************************************************/ ******************************************************************************/
package org.mitre.openid.connect.client.keypublisher; package org.mitre.openid.connect.client.keypublisher;
import java.util.Map; import java.util.Map;

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -14,6 +13,8 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
******************************************************************************/ ******************************************************************************/
/** /**
* *
*/ */

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -14,6 +13,8 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
******************************************************************************/ ******************************************************************************/
/** /**
* *
*/ */

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -14,6 +13,8 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
******************************************************************************/ ******************************************************************************/
/** /**
* *
*/ */

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -14,6 +13,8 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
******************************************************************************/ ******************************************************************************/
/** /**
* *
*/ */
@ -21,7 +22,6 @@ package org.mitre.openid.connect.client.service;
import org.mitre.oauth2.model.RegisteredClient; import org.mitre.oauth2.model.RegisteredClient;
import org.mitre.openid.connect.config.ServerConfiguration; import org.mitre.openid.connect.config.ServerConfiguration;
import org.springframework.security.oauth2.provider.ClientDetails;
/** /**
* @author jricher * @author jricher

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -14,15 +13,15 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
******************************************************************************/ ******************************************************************************/
/** /**
* *
*/ */
package org.mitre.openid.connect.client.service; package org.mitre.openid.connect.client.service;
import org.mitre.oauth2.model.ClientDetailsEntity;
import org.mitre.oauth2.model.RegisteredClient; import org.mitre.oauth2.model.RegisteredClient;
import org.mitre.openid.connect.config.ServerConfiguration; import org.mitre.openid.connect.config.ServerConfiguration;
import org.springframework.security.oauth2.provider.ClientDetails;
/** /**
* @author jricher * @author jricher

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -14,6 +13,8 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
******************************************************************************/ ******************************************************************************/
/** /**
* *
*/ */

View File

@ -1,3 +1,20 @@
/*******************************************************************************
* Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
******************************************************************************/
/** /**
* *
*/ */
@ -18,7 +35,7 @@ public interface RegisteredClientService {
* @param issuer * @param issuer
* @return * @return
*/ */
RegisteredClient getByIssuer(String issuer); RegisteredClient getByIssuer(String issuer);
/** /**
* Save this client's information for talking to the given issuer. This will * Save this client's information for talking to the given issuer. This will
@ -26,6 +43,6 @@ public interface RegisteredClientService {
* the server. * the server.
* @param client * @param client
*/ */
void save(String issuer, RegisteredClient client); void save(String issuer, RegisteredClient client);
} }

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -14,6 +13,8 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
******************************************************************************/ ******************************************************************************/
/** /**
* *
*/ */

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -14,6 +13,8 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
******************************************************************************/ ******************************************************************************/
/** /**
* *
*/ */

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -14,6 +13,8 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
******************************************************************************/ ******************************************************************************/
/** /**
* *
*/ */

View File

@ -1,3 +1,20 @@
/*******************************************************************************
* Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
******************************************************************************/
/** /**
* *
*/ */
@ -47,80 +64,80 @@ public class HybridClientConfigurationService implements ClientConfigurationServ
* @return * @return
* @see org.mitre.openid.connect.client.service.impl.StaticClientConfigurationService#getClients() * @see org.mitre.openid.connect.client.service.impl.StaticClientConfigurationService#getClients()
*/ */
public Map<String, RegisteredClient> getClients() { public Map<String, RegisteredClient> getClients() {
return staticClientService.getClients(); return staticClientService.getClients();
} }
/** /**
* @param clients * @param clients
* @see org.mitre.openid.connect.client.service.impl.StaticClientConfigurationService#setClients(java.util.Map) * @see org.mitre.openid.connect.client.service.impl.StaticClientConfigurationService#setClients(java.util.Map)
*/ */
public void setClients(Map<String, RegisteredClient> clients) { public void setClients(Map<String, RegisteredClient> clients) {
staticClientService.setClients(clients); staticClientService.setClients(clients);
} }
/** /**
* @return * @return
* @see org.mitre.openid.connect.client.service.impl.DynamicRegistrationClientConfigurationService#getTemplate() * @see org.mitre.openid.connect.client.service.impl.DynamicRegistrationClientConfigurationService#getTemplate()
*/ */
public RegisteredClient getTemplate() { public RegisteredClient getTemplate() {
return dynamicClientService.getTemplate(); return dynamicClientService.getTemplate();
} }
/** /**
* @param template * @param template
* @see org.mitre.openid.connect.client.service.impl.DynamicRegistrationClientConfigurationService#setTemplate(org.mitre.oauth2.model.RegisteredClient) * @see org.mitre.openid.connect.client.service.impl.DynamicRegistrationClientConfigurationService#setTemplate(org.mitre.oauth2.model.RegisteredClient)
*/ */
public void setTemplate(RegisteredClient template) { public void setTemplate(RegisteredClient template) {
dynamicClientService.setTemplate(template); dynamicClientService.setTemplate(template);
} }
/** /**
* @return * @return
* @see org.mitre.openid.connect.client.service.impl.DynamicRegistrationClientConfigurationService#getRegisteredClientService() * @see org.mitre.openid.connect.client.service.impl.DynamicRegistrationClientConfigurationService#getRegisteredClientService()
*/ */
public RegisteredClientService getRegisteredClientService() { public RegisteredClientService getRegisteredClientService() {
return dynamicClientService.getRegisteredClientService(); return dynamicClientService.getRegisteredClientService();
} }
/** /**
* @param registeredClientService * @param registeredClientService
* @see org.mitre.openid.connect.client.service.impl.DynamicRegistrationClientConfigurationService#setRegisteredClientService(org.mitre.openid.connect.client.service.RegisteredClientService) * @see org.mitre.openid.connect.client.service.impl.DynamicRegistrationClientConfigurationService#setRegisteredClientService(org.mitre.openid.connect.client.service.RegisteredClientService)
*/ */
public void setRegisteredClientService(RegisteredClientService registeredClientService) { public void setRegisteredClientService(RegisteredClientService registeredClientService) {
dynamicClientService.setRegisteredClientService(registeredClientService); dynamicClientService.setRegisteredClientService(registeredClientService);
} }
/** /**
* @return * @return
* @see org.mitre.openid.connect.client.service.impl.DynamicRegistrationClientConfigurationService#getWhitelist() * @see org.mitre.openid.connect.client.service.impl.DynamicRegistrationClientConfigurationService#getWhitelist()
*/ */
public Set<String> getWhitelist() { public Set<String> getWhitelist() {
return dynamicClientService.getWhitelist(); return dynamicClientService.getWhitelist();
} }
/** /**
* @param whitelist * @param whitelist
* @see org.mitre.openid.connect.client.service.impl.DynamicRegistrationClientConfigurationService#setWhitelist(java.util.Set) * @see org.mitre.openid.connect.client.service.impl.DynamicRegistrationClientConfigurationService#setWhitelist(java.util.Set)
*/ */
public void setWhitelist(Set<String> whitelist) { public void setWhitelist(Set<String> whitelist) {
dynamicClientService.setWhitelist(whitelist); dynamicClientService.setWhitelist(whitelist);
} }
/** /**
* @return * @return
* @see org.mitre.openid.connect.client.service.impl.DynamicRegistrationClientConfigurationService#getBlacklist() * @see org.mitre.openid.connect.client.service.impl.DynamicRegistrationClientConfigurationService#getBlacklist()
*/ */
public Set<String> getBlacklist() { public Set<String> getBlacklist() {
return dynamicClientService.getBlacklist(); return dynamicClientService.getBlacklist();
} }
/** /**
* @param blacklist * @param blacklist
* @see org.mitre.openid.connect.client.service.impl.DynamicRegistrationClientConfigurationService#setBlacklist(java.util.Set) * @see org.mitre.openid.connect.client.service.impl.DynamicRegistrationClientConfigurationService#setBlacklist(java.util.Set)
*/ */
public void setBlacklist(Set<String> blacklist) { public void setBlacklist(Set<String> blacklist) {
dynamicClientService.setBlacklist(blacklist); dynamicClientService.setBlacklist(blacklist);
} }
} }

View File

@ -1,3 +1,20 @@
/*******************************************************************************
* Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
******************************************************************************/
/** /**
* *
*/ */
@ -46,53 +63,53 @@ public class HybridServerConfigurationService implements ServerConfigurationServ
* @return * @return
* @see org.mitre.openid.connect.client.service.impl.StaticServerConfigurationService#getServers() * @see org.mitre.openid.connect.client.service.impl.StaticServerConfigurationService#getServers()
*/ */
public Map<String, ServerConfiguration> getServers() { public Map<String, ServerConfiguration> getServers() {
return staticServerService.getServers(); return staticServerService.getServers();
} }
/** /**
* @param servers * @param servers
* @see org.mitre.openid.connect.client.service.impl.StaticServerConfigurationService#setServers(java.util.Map) * @see org.mitre.openid.connect.client.service.impl.StaticServerConfigurationService#setServers(java.util.Map)
*/ */
public void setServers(Map<String, ServerConfiguration> servers) { public void setServers(Map<String, ServerConfiguration> servers) {
staticServerService.setServers(servers); staticServerService.setServers(servers);
} }
/** /**
* @return * @return
* @see org.mitre.openid.connect.client.service.impl.DynamicServerConfigurationService#getWhitelist() * @see org.mitre.openid.connect.client.service.impl.DynamicServerConfigurationService#getWhitelist()
*/ */
public Set<String> getWhitelist() { public Set<String> getWhitelist() {
return dynamicServerService.getWhitelist(); return dynamicServerService.getWhitelist();
} }
/** /**
* @param whitelist * @param whitelist
* @see org.mitre.openid.connect.client.service.impl.DynamicServerConfigurationService#setWhitelist(java.util.Set) * @see org.mitre.openid.connect.client.service.impl.DynamicServerConfigurationService#setWhitelist(java.util.Set)
*/ */
public void setWhitelist(Set<String> whitelist) { public void setWhitelist(Set<String> whitelist) {
dynamicServerService.setWhitelist(whitelist); dynamicServerService.setWhitelist(whitelist);
} }
/** /**
* @return * @return
* @see org.mitre.openid.connect.client.service.impl.DynamicServerConfigurationService#getBlacklist() * @see org.mitre.openid.connect.client.service.impl.DynamicServerConfigurationService#getBlacklist()
*/ */
public Set<String> getBlacklist() { public Set<String> getBlacklist() {
return dynamicServerService.getBlacklist(); return dynamicServerService.getBlacklist();
} }
/** /**
* @param blacklist * @param blacklist
* @see org.mitre.openid.connect.client.service.impl.DynamicServerConfigurationService#setBlacklist(java.util.Set) * @see org.mitre.openid.connect.client.service.impl.DynamicServerConfigurationService#setBlacklist(java.util.Set)
*/ */
public void setBlacklist(Set<String> blacklist) { public void setBlacklist(Set<String> blacklist) {
dynamicServerService.setBlacklist(blacklist); dynamicServerService.setBlacklist(blacklist);
} }
} }

View File

@ -1,3 +1,20 @@
/*******************************************************************************
* Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
******************************************************************************/
/** /**
* *
*/ */

View File

@ -1,12 +1,27 @@
/*******************************************************************************
* Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
******************************************************************************/
/** /**
* *
*/ */
package org.mitre.openid.connect.client.service.impl; package org.mitre.openid.connect.client.service.impl;
import java.io.File; import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException; import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileReader; import java.io.FileReader;
import java.io.FileWriter; import java.io.FileWriter;
import java.io.IOException; import java.io.IOException;
@ -42,7 +57,7 @@ public class JsonFileRegisteredClientService implements RegisteredClientService
private Gson gson = new GsonBuilder() private Gson gson = new GsonBuilder()
.registerTypeAdapter(RegisteredClient.class, new JsonSerializer<RegisteredClient>() { .registerTypeAdapter(RegisteredClient.class, new JsonSerializer<RegisteredClient>() {
@Override @Override
public JsonElement serialize(RegisteredClient src, Type typeOfSrc, JsonSerializationContext context) { public JsonElement serialize(RegisteredClient src, Type typeOfSrc, JsonSerializationContext context) {
JsonObject obj = new JsonObject(); JsonObject obj = new JsonObject();
obj.addProperty("token", src.getRegistrationAccessToken()); obj.addProperty("token", src.getRegistrationAccessToken());
obj.addProperty("uri", src.getRegistrationClientUri()); obj.addProperty("uri", src.getRegistrationClientUri());
@ -52,12 +67,12 @@ public class JsonFileRegisteredClientService implements RegisteredClientService
if (src.getClientSecretExpiresAt() != null) { if (src.getClientSecretExpiresAt() != null) {
obj.addProperty("expires", src.getClientSecretExpiresAt().getTime()); obj.addProperty("expires", src.getClientSecretExpiresAt().getTime());
} }
return obj; return obj;
} }
}) })
.registerTypeAdapter(RegisteredClient.class, new JsonDeserializer<RegisteredClient>() { .registerTypeAdapter(RegisteredClient.class, new JsonDeserializer<RegisteredClient>() {
@Override @Override
public RegisteredClient deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException { public RegisteredClient deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {
if (json.isJsonObject()) { if (json.isJsonObject()) {
JsonObject src = json.getAsJsonObject(); JsonObject src = json.getAsJsonObject();
RegisteredClient rc = new RegisteredClient(); RegisteredClient rc = new RegisteredClient();
@ -73,7 +88,7 @@ public class JsonFileRegisteredClientService implements RegisteredClientService
} else { } else {
return null; return null;
} }
} }
}) })
.create(); .create();
@ -115,15 +130,15 @@ public class JsonFileRegisteredClientService implements RegisteredClientService
} }
FileWriter out = new FileWriter(file); FileWriter out = new FileWriter(file);
gson.toJson(clients, new TypeToken<Map<String, RegisteredClient>>(){}.getType(), out); gson.toJson(clients, new TypeToken<Map<String, RegisteredClient>>(){}.getType(), out);
out.close(); out.close();
} catch (FileNotFoundException e) { } catch (FileNotFoundException e) {
logger.error("Could not write to output file", e); logger.error("Could not write to output file", e);
} catch (IOException e) { } catch (IOException e) {
logger.error("Could not write to output file", e); logger.error("Could not write to output file", e);
} }
} }
/** /**
@ -141,11 +156,11 @@ public class JsonFileRegisteredClientService implements RegisteredClientService
in.close(); in.close();
} catch (FileNotFoundException e) { } catch (FileNotFoundException e) {
logger.error("Could not read from input file", e); logger.error("Could not read from input file", e);
} catch (IOException e) { } catch (IOException e) {
logger.error("Could not read from input file", e); logger.error("Could not read from input file", e);
} }
} }
} }

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -14,6 +13,8 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
******************************************************************************/ ******************************************************************************/
/** /**
* *
*/ */

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -14,6 +13,8 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
******************************************************************************/ ******************************************************************************/
/** /**
* *
*/ */

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -14,6 +13,8 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
******************************************************************************/ ******************************************************************************/
/** /**
* *
*/ */

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -14,6 +13,8 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
******************************************************************************/ ******************************************************************************/
/** /**
* *
*/ */

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -14,6 +13,8 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
******************************************************************************/ ******************************************************************************/
/** /**
* *
*/ */

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -14,6 +13,8 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
******************************************************************************/ ******************************************************************************/
/** /**
* *
*/ */

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -14,6 +13,8 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
******************************************************************************/ ******************************************************************************/
/** /**
* *
*/ */
@ -189,12 +190,12 @@ public class WebfingerIssuerService implements IssuerService {
// do a webfinger lookup // do a webfinger lookup
URIBuilder builder = new URIBuilder(scheme URIBuilder builder = new URIBuilder(scheme
+ key.getHost() + key.getHost()
+ (key.getPort() >= 0 ? ":" + key.getPort() : "") + (key.getPort() >= 0 ? ":" + key.getPort() : "")
+ Strings.nullToEmpty(key.getPath()) + Strings.nullToEmpty(key.getPath())
+ "/.well-known/webfinger" + "/.well-known/webfinger"
+ (Strings.isNullOrEmpty(key.getQuery()) ? "" : "?" + key.getQuery()) + (Strings.isNullOrEmpty(key.getQuery()) ? "" : "?" + key.getQuery())
); );
builder.addParameter("resource", key.toString()); builder.addParameter("resource", key.toString());
builder.addParameter("rel", "http://openid.net/specs/connect/1.0/issuer"); builder.addParameter("rel", "http://openid.net/specs/connect/1.0/issuer");

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -14,12 +13,9 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
******************************************************************************/ ******************************************************************************/
package org.mitre.openid.connect.client.service.impl;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.nullValue; package org.mitre.openid.connect.client.service.impl;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertThat;
import org.junit.Before; import org.junit.Before;
import org.junit.Test; import org.junit.Test;
@ -27,10 +23,16 @@ import org.junit.runner.RunWith;
import org.mitre.oauth2.model.RegisteredClient; import org.mitre.oauth2.model.RegisteredClient;
import org.mitre.openid.connect.config.ServerConfiguration; import org.mitre.openid.connect.config.ServerConfiguration;
import org.mockito.InjectMocks; import org.mockito.InjectMocks;
import org.mockito.Matchers;
import org.mockito.Mock; import org.mockito.Mock;
import org.mockito.Mockito; import org.mockito.Mockito;
import org.mockito.runners.MockitoJUnitRunner; import org.mockito.runners.MockitoJUnitRunner;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.nullValue;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertThat;
/** /**
* @author wkim * @author wkim
* *
@ -74,7 +76,7 @@ public class TestHybridClientConfigurationService {
RegisteredClient result = hybridService.getClientConfiguration(mockServerConfig); RegisteredClient result = hybridService.getClientConfiguration(mockServerConfig);
Mockito.verify(mockStaticService).getClientConfiguration(mockServerConfig); Mockito.verify(mockStaticService).getClientConfiguration(mockServerConfig);
Mockito.verify(mockDynamicService, Mockito.never()).getClientConfiguration(Mockito.any(ServerConfiguration.class)); Mockito.verify(mockDynamicService, Mockito.never()).getClientConfiguration(Matchers.any(ServerConfiguration.class));
assertEquals(mockClient, result); assertEquals(mockClient, result);
} }

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -14,23 +13,26 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
******************************************************************************/ ******************************************************************************/
package org.mitre.openid.connect.client.service.impl; package org.mitre.openid.connect.client.service.impl;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.nullValue;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertThat;
import org.junit.Before; import org.junit.Before;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.mitre.openid.connect.config.ServerConfiguration; import org.mitre.openid.connect.config.ServerConfiguration;
import org.mockito.InjectMocks; import org.mockito.InjectMocks;
import org.mockito.Matchers;
import org.mockito.Mock; import org.mockito.Mock;
import org.mockito.Mockito; import org.mockito.Mockito;
import org.mockito.runners.MockitoJUnitRunner; import org.mockito.runners.MockitoJUnitRunner;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.nullValue;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertThat;
/** /**
* @author wkim * @author wkim
* *
@ -68,7 +70,7 @@ public class TestHybridServerConfigurationService {
ServerConfiguration result = hybridService.getServerConfiguration(issuer); ServerConfiguration result = hybridService.getServerConfiguration(issuer);
Mockito.verify(mockStaticService).getServerConfiguration(issuer); Mockito.verify(mockStaticService).getServerConfiguration(issuer);
Mockito.verify(mockDynamicService, Mockito.never()).getServerConfiguration(Mockito.anyString()); Mockito.verify(mockDynamicService, Mockito.never()).getServerConfiguration(Matchers.anyString());
assertEquals(mockServerConfig, result); assertEquals(mockServerConfig, result);
} }

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -14,10 +13,9 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
******************************************************************************/ ******************************************************************************/
package org.mitre.openid.connect.client.service.impl;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.junit.Assert.*; package org.mitre.openid.connect.client.service.impl;
import org.junit.Before; import org.junit.Before;
import org.junit.Test; import org.junit.Test;
@ -28,6 +26,9 @@ import org.springframework.security.authentication.AuthenticationServiceExceptio
import com.google.common.collect.Sets; import com.google.common.collect.Sets;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.junit.Assert.assertThat;
/** /**
* @author wkim * @author wkim
* *

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -14,11 +13,9 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
******************************************************************************/ ******************************************************************************/
package org.mitre.openid.connect.client.service.impl;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue; package org.mitre.openid.connect.client.service.impl;
import static org.junit.Assert.fail;
import java.net.URI; import java.net.URI;
import java.net.URISyntaxException; import java.net.URISyntaxException;
@ -29,8 +26,6 @@ import java.util.Arrays;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import net.minidev.json.JSONObject;
import org.junit.Before; import org.junit.Before;
import org.junit.Test; import org.junit.Test;
import org.mitre.jwt.signer.service.impl.DefaultJwtSigningAndValidationService; import org.mitre.jwt.signer.service.impl.DefaultJwtSigningAndValidationService;
@ -41,20 +36,20 @@ import org.springframework.security.authentication.AuthenticationServiceExceptio
import org.springframework.web.util.UriComponents; import org.springframework.web.util.UriComponents;
import org.springframework.web.util.UriComponentsBuilder; import org.springframework.web.util.UriComponentsBuilder;
import com.google.common.base.Joiner;
import com.google.common.collect.Maps; import com.google.common.collect.Maps;
import com.google.common.collect.Sets; import com.google.common.collect.Sets;
import com.nimbusds.jose.Algorithm; import com.nimbusds.jose.Algorithm;
import com.nimbusds.jose.JWSObject;
import com.nimbusds.jose.jwk.JWK; import com.nimbusds.jose.jwk.JWK;
import com.nimbusds.jose.jwk.RSAKey; import com.nimbusds.jose.jwk.RSAKey;
import com.nimbusds.jose.jwk.Use; import com.nimbusds.jose.jwk.Use;
import com.nimbusds.jose.util.Base64URL; import com.nimbusds.jose.util.Base64URL;
import com.nimbusds.jose.util.JSONObjectUtils;
import com.nimbusds.jwt.JWTClaimsSet;
import com.nimbusds.jwt.ReadOnlyJWTClaimsSet; import com.nimbusds.jwt.ReadOnlyJWTClaimsSet;
import com.nimbusds.jwt.SignedJWT; import com.nimbusds.jwt.SignedJWT;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
/** /**
* @author wkim * @author wkim
* *
@ -73,16 +68,16 @@ public class TestSignedAuthRequestUrlBuilder {
// RSA key properties: // RSA key properties:
// {@link package com.nimbusds.jose.jwk#RSAKey} // {@link package com.nimbusds.jose.jwk#RSAKey}
private String n = "0vx7agoebGcQSuuPiLJXZptN9nndrQmbXEps2aiAFbWhM78LhWx4cbbfAAtVT86zw" + private String n = "0vx7agoebGcQSuuPiLJXZptN9nndrQmbXEps2aiAFbWhM78LhWx4cbbfAAtVT86zw" +
"u1RK7aPFFxuhDR1L6tSoc_BJECPebWKRXjBZCiFV4n3oknjhMstn64tZ_2W-5JsGY4Hc" + "u1RK7aPFFxuhDR1L6tSoc_BJECPebWKRXjBZCiFV4n3oknjhMstn64tZ_2W-5JsGY4Hc" +
"5n9yBXArwl93lqt7_RN5w6Cf0h4QyQ5v-65YGjQR0_FDW2QvzqY368QQMicAtaSqzs8K" + "5n9yBXArwl93lqt7_RN5w6Cf0h4QyQ5v-65YGjQR0_FDW2QvzqY368QQMicAtaSqzs8K" +
"JZgnYb9c7d0zgdAZHzu6qMQvRL5hajrn1n91CbOpbISD08qNLyrdkt-bFTWhAI4vMQFh" + "JZgnYb9c7d0zgdAZHzu6qMQvRL5hajrn1n91CbOpbISD08qNLyrdkt-bFTWhAI4vMQFh" +
"6WeZu0fM4lFd2NcRwr3XPksINHaQ-G_xBniIqbw0Ls1jF44-csFCur-kEgU8awapJzKnqDKgw"; "6WeZu0fM4lFd2NcRwr3XPksINHaQ-G_xBniIqbw0Ls1jF44-csFCur-kEgU8awapJzKnqDKgw";
private String e = "AQAB"; private String e = "AQAB";
private String d = "X4cTteJY_gn4FYPsXB8rdXix5vwsg1FLN5E3EaG6RJoVH-HLLKD9M7dx5oo7GURknc" + private String d = "X4cTteJY_gn4FYPsXB8rdXix5vwsg1FLN5E3EaG6RJoVH-HLLKD9M7dx5oo7GURknc" +
"hnrRweUkC7hT5fJLM0WbFAKNLWY2vv7B6NqXSzUvxT0_YSfqijwp3RTzlBaCxWp4doFk5" + "hnrRweUkC7hT5fJLM0WbFAKNLWY2vv7B6NqXSzUvxT0_YSfqijwp3RTzlBaCxWp4doFk5" +
"N2o8Gy_nHNKroADIkJ46pRUohsXywbReAdYaMwFs9tv8d_cPVY3i07a3t8MN6TNwm0dSa" + "N2o8Gy_nHNKroADIkJ46pRUohsXywbReAdYaMwFs9tv8d_cPVY3i07a3t8MN6TNwm0dSa" +
"wm9v47UiCl3Sk5ZiG7xojPLu4sbg1U2jx4IBTNBznbJSzFHK66jT8bgkuqsk0GjskDJk1" + "wm9v47UiCl3Sk5ZiG7xojPLu4sbg1U2jx4IBTNBznbJSzFHK66jT8bgkuqsk0GjskDJk1" +
"9Z4qwjwbsnn4j2WBii3RL-Us2lGVkY8fkFzme1z0HbIkfz0Y6mqnOYtqc0X4jfcKoAC8Q"; "9Z4qwjwbsnn4j2WBii3RL-Us2lGVkY8fkFzme1z0HbIkfz0Y6mqnOYtqc0X4jfcKoAC8Q";
private String alg = "RS256"; private String alg = "RS256";
private String kid = "2011-04-29"; private String kid = "2011-04-29";

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -14,13 +13,9 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
******************************************************************************/ ******************************************************************************/
package org.mitre.openid.connect.client.service.impl;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.notNullValue; package org.mitre.openid.connect.client.service.impl;
import static org.hamcrest.CoreMatchers.nullValue;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertThat;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
@ -34,6 +29,12 @@ import org.mockito.Mock;
import org.mockito.Mockito; import org.mockito.Mockito;
import org.mockito.runners.MockitoJUnitRunner; import org.mockito.runners.MockitoJUnitRunner;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.notNullValue;
import static org.hamcrest.CoreMatchers.nullValue;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertThat;
/** /**
* @author wkim * @author wkim
* *

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -14,13 +13,9 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
******************************************************************************/ ******************************************************************************/
package org.mitre.openid.connect.client.service.impl;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.notNullValue; package org.mitre.openid.connect.client.service.impl;
import static org.hamcrest.CoreMatchers.nullValue;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertThat;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
@ -32,6 +27,12 @@ import org.mitre.openid.connect.config.ServerConfiguration;
import org.mockito.Mock; import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner; import org.mockito.runners.MockitoJUnitRunner;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.notNullValue;
import static org.hamcrest.CoreMatchers.nullValue;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertThat;
/** /**
* @author wkim * @author wkim
* *

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -14,11 +13,9 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
******************************************************************************/ ******************************************************************************/
package org.mitre.openid.connect.client.service.impl;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.nullValue; package org.mitre.openid.connect.client.service.impl;
import static org.junit.Assert.*;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
@ -30,6 +27,10 @@ import org.springframework.security.authentication.AuthenticationServiceExceptio
import com.google.common.collect.Sets; import com.google.common.collect.Sets;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.nullValue;
import static org.junit.Assert.assertThat;
/** /**
* @author wkim * @author wkim
* *

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -18,6 +17,7 @@ package org.mitre.discovery.util;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.util.StringUtils; import org.springframework.util.StringUtils;

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,3 +1,18 @@
/*******************************************************************************
* Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
******************************************************************************/
/** /**
* *
*/ */
@ -31,27 +46,27 @@ public class RegisteredClient {
/** /**
* *
*/ */
public RegisteredClient() { public RegisteredClient() {
this.client = new ClientDetailsEntity(); this.client = new ClientDetailsEntity();
} }
/** /**
* @param client * @param client
*/ */
public RegisteredClient(ClientDetailsEntity client) { public RegisteredClient(ClientDetailsEntity client) {
this.client = client; this.client = client;
} }
/** /**
* @param client * @param client
* @param registrationAccessToken * @param registrationAccessToken
* @param registrationClientUri * @param registrationClientUri
*/ */
public RegisteredClient(ClientDetailsEntity client, String registrationAccessToken, String registrationClientUri) { public RegisteredClient(ClientDetailsEntity client, String registrationAccessToken, String registrationClientUri) {
this.client = client; this.client = client;
this.registrationAccessToken = registrationAccessToken; this.registrationAccessToken = registrationAccessToken;
this.registrationClientUri = registrationClientUri; this.registrationClientUri = registrationClientUri;
} }
/** /**
* @return the client * @return the client
@ -69,604 +84,604 @@ public class RegisteredClient {
* @return * @return
* @see org.mitre.oauth2.model.ClientDetailsEntity#getClientDescription() * @see org.mitre.oauth2.model.ClientDetailsEntity#getClientDescription()
*/ */
public String getClientDescription() { public String getClientDescription() {
return client.getClientDescription(); return client.getClientDescription();
} }
/** /**
* @param clientDescription * @param clientDescription
* @see org.mitre.oauth2.model.ClientDetailsEntity#setClientDescription(java.lang.String) * @see org.mitre.oauth2.model.ClientDetailsEntity#setClientDescription(java.lang.String)
*/ */
public void setClientDescription(String clientDescription) { public void setClientDescription(String clientDescription) {
client.setClientDescription(clientDescription); client.setClientDescription(clientDescription);
} }
/** /**
* @return * @return
* @see org.mitre.oauth2.model.ClientDetailsEntity#isAllowRefresh() * @see org.mitre.oauth2.model.ClientDetailsEntity#isAllowRefresh()
*/ */
public boolean isAllowRefresh() { public boolean isAllowRefresh() {
return client.isAllowRefresh(); return client.isAllowRefresh();
} }
/** /**
* @return * @return
* @see org.mitre.oauth2.model.ClientDetailsEntity#isReuseRefreshToken() * @see org.mitre.oauth2.model.ClientDetailsEntity#isReuseRefreshToken()
*/ */
public boolean isReuseRefreshToken() { public boolean isReuseRefreshToken() {
return client.isReuseRefreshToken(); return client.isReuseRefreshToken();
} }
/** /**
* @param reuseRefreshToken * @param reuseRefreshToken
* @see org.mitre.oauth2.model.ClientDetailsEntity#setReuseRefreshToken(boolean) * @see org.mitre.oauth2.model.ClientDetailsEntity#setReuseRefreshToken(boolean)
*/ */
public void setReuseRefreshToken(boolean reuseRefreshToken) { public void setReuseRefreshToken(boolean reuseRefreshToken) {
client.setReuseRefreshToken(reuseRefreshToken); client.setReuseRefreshToken(reuseRefreshToken);
} }
/** /**
* @return * @return
* @see org.mitre.oauth2.model.ClientDetailsEntity#getIdTokenValiditySeconds() * @see org.mitre.oauth2.model.ClientDetailsEntity#getIdTokenValiditySeconds()
*/ */
public Integer getIdTokenValiditySeconds() { public Integer getIdTokenValiditySeconds() {
return client.getIdTokenValiditySeconds(); return client.getIdTokenValiditySeconds();
} }
/** /**
* @param idTokenValiditySeconds * @param idTokenValiditySeconds
* @see org.mitre.oauth2.model.ClientDetailsEntity#setIdTokenValiditySeconds(java.lang.Integer) * @see org.mitre.oauth2.model.ClientDetailsEntity#setIdTokenValiditySeconds(java.lang.Integer)
*/ */
public void setIdTokenValiditySeconds(Integer idTokenValiditySeconds) { public void setIdTokenValiditySeconds(Integer idTokenValiditySeconds) {
client.setIdTokenValiditySeconds(idTokenValiditySeconds); client.setIdTokenValiditySeconds(idTokenValiditySeconds);
} }
/** /**
* @return * @return
* @see org.mitre.oauth2.model.ClientDetailsEntity#isDynamicallyRegistered() * @see org.mitre.oauth2.model.ClientDetailsEntity#isDynamicallyRegistered()
*/ */
public boolean isDynamicallyRegistered() { public boolean isDynamicallyRegistered() {
return client.isDynamicallyRegistered(); return client.isDynamicallyRegistered();
} }
/** /**
* @param dynamicallyRegistered * @param dynamicallyRegistered
* @see org.mitre.oauth2.model.ClientDetailsEntity#setDynamicallyRegistered(boolean) * @see org.mitre.oauth2.model.ClientDetailsEntity#setDynamicallyRegistered(boolean)
*/ */
public void setDynamicallyRegistered(boolean dynamicallyRegistered) { public void setDynamicallyRegistered(boolean dynamicallyRegistered) {
client.setDynamicallyRegistered(dynamicallyRegistered); client.setDynamicallyRegistered(dynamicallyRegistered);
} }
/** /**
* @return * @return
* @see org.mitre.oauth2.model.ClientDetailsEntity#isAllowIntrospection() * @see org.mitre.oauth2.model.ClientDetailsEntity#isAllowIntrospection()
*/ */
public boolean isAllowIntrospection() { public boolean isAllowIntrospection() {
return client.isAllowIntrospection(); return client.isAllowIntrospection();
} }
/** /**
* @param allowIntrospection * @param allowIntrospection
* @see org.mitre.oauth2.model.ClientDetailsEntity#setAllowIntrospection(boolean) * @see org.mitre.oauth2.model.ClientDetailsEntity#setAllowIntrospection(boolean)
*/ */
public void setAllowIntrospection(boolean allowIntrospection) { public void setAllowIntrospection(boolean allowIntrospection) {
client.setAllowIntrospection(allowIntrospection); client.setAllowIntrospection(allowIntrospection);
} }
/** /**
* @return * @return
* @see org.mitre.oauth2.model.ClientDetailsEntity#isSecretRequired() * @see org.mitre.oauth2.model.ClientDetailsEntity#isSecretRequired()
*/ */
public boolean isSecretRequired() { public boolean isSecretRequired() {
return client.isSecretRequired(); return client.isSecretRequired();
} }
/** /**
* @return * @return
* @see org.mitre.oauth2.model.ClientDetailsEntity#isScoped() * @see org.mitre.oauth2.model.ClientDetailsEntity#isScoped()
*/ */
public boolean isScoped() { public boolean isScoped() {
return client.isScoped(); return client.isScoped();
} }
/** /**
* @return * @return
* @see org.mitre.oauth2.model.ClientDetailsEntity#getClientId() * @see org.mitre.oauth2.model.ClientDetailsEntity#getClientId()
*/ */
public String getClientId() { public String getClientId() {
return client.getClientId(); return client.getClientId();
} }
/** /**
* @param clientId * @param clientId
* @see org.mitre.oauth2.model.ClientDetailsEntity#setClientId(java.lang.String) * @see org.mitre.oauth2.model.ClientDetailsEntity#setClientId(java.lang.String)
*/ */
public void setClientId(String clientId) { public void setClientId(String clientId) {
client.setClientId(clientId); client.setClientId(clientId);
} }
/** /**
* @return * @return
* @see org.mitre.oauth2.model.ClientDetailsEntity#getClientSecret() * @see org.mitre.oauth2.model.ClientDetailsEntity#getClientSecret()
*/ */
public String getClientSecret() { public String getClientSecret() {
return client.getClientSecret(); return client.getClientSecret();
} }
/** /**
* @param clientSecret * @param clientSecret
* @see org.mitre.oauth2.model.ClientDetailsEntity#setClientSecret(java.lang.String) * @see org.mitre.oauth2.model.ClientDetailsEntity#setClientSecret(java.lang.String)
*/ */
public void setClientSecret(String clientSecret) { public void setClientSecret(String clientSecret) {
client.setClientSecret(clientSecret); client.setClientSecret(clientSecret);
} }
/** /**
* @return * @return
* @see org.mitre.oauth2.model.ClientDetailsEntity#getScope() * @see org.mitre.oauth2.model.ClientDetailsEntity#getScope()
*/ */
public Set<String> getScope() { public Set<String> getScope() {
return client.getScope(); return client.getScope();
} }
/** /**
* @param scope * @param scope
* @see org.mitre.oauth2.model.ClientDetailsEntity#setScope(java.util.Set) * @see org.mitre.oauth2.model.ClientDetailsEntity#setScope(java.util.Set)
*/ */
public void setScope(Set<String> scope) { public void setScope(Set<String> scope) {
client.setScope(scope); client.setScope(scope);
} }
/** /**
* @return * @return
* @see org.mitre.oauth2.model.ClientDetailsEntity#getGrantTypes() * @see org.mitre.oauth2.model.ClientDetailsEntity#getGrantTypes()
*/ */
public Set<String> getGrantTypes() { public Set<String> getGrantTypes() {
return client.getGrantTypes(); return client.getGrantTypes();
} }
/** /**
* @param grantTypes * @param grantTypes
* @see org.mitre.oauth2.model.ClientDetailsEntity#setGrantTypes(java.util.Set) * @see org.mitre.oauth2.model.ClientDetailsEntity#setGrantTypes(java.util.Set)
*/ */
public void setGrantTypes(Set<String> grantTypes) { public void setGrantTypes(Set<String> grantTypes) {
client.setGrantTypes(grantTypes); client.setGrantTypes(grantTypes);
} }
/** /**
* @return * @return
* @see org.mitre.oauth2.model.ClientDetailsEntity#getAuthorizedGrantTypes() * @see org.mitre.oauth2.model.ClientDetailsEntity#getAuthorizedGrantTypes()
*/ */
public Set<String> getAuthorizedGrantTypes() { public Set<String> getAuthorizedGrantTypes() {
return client.getAuthorizedGrantTypes(); return client.getAuthorizedGrantTypes();
} }
/** /**
* @return * @return
* @see org.mitre.oauth2.model.ClientDetailsEntity#getAuthorities() * @see org.mitre.oauth2.model.ClientDetailsEntity#getAuthorities()
*/ */
public Set<GrantedAuthority> getAuthorities() { public Set<GrantedAuthority> getAuthorities() {
return client.getAuthorities(); return client.getAuthorities();
} }
/** /**
* @param authorities * @param authorities
* @see org.mitre.oauth2.model.ClientDetailsEntity#setAuthorities(java.util.Set) * @see org.mitre.oauth2.model.ClientDetailsEntity#setAuthorities(java.util.Set)
*/ */
public void setAuthorities(Set<GrantedAuthority> authorities) { public void setAuthorities(Set<GrantedAuthority> authorities) {
client.setAuthorities(authorities); client.setAuthorities(authorities);
} }
/** /**
* @return * @return
* @see org.mitre.oauth2.model.ClientDetailsEntity#getAccessTokenValiditySeconds() * @see org.mitre.oauth2.model.ClientDetailsEntity#getAccessTokenValiditySeconds()
*/ */
public Integer getAccessTokenValiditySeconds() { public Integer getAccessTokenValiditySeconds() {
return client.getAccessTokenValiditySeconds(); return client.getAccessTokenValiditySeconds();
} }
/** /**
* @param accessTokenValiditySeconds * @param accessTokenValiditySeconds
* @see org.mitre.oauth2.model.ClientDetailsEntity#setAccessTokenValiditySeconds(java.lang.Integer) * @see org.mitre.oauth2.model.ClientDetailsEntity#setAccessTokenValiditySeconds(java.lang.Integer)
*/ */
public void setAccessTokenValiditySeconds(Integer accessTokenValiditySeconds) { public void setAccessTokenValiditySeconds(Integer accessTokenValiditySeconds) {
client.setAccessTokenValiditySeconds(accessTokenValiditySeconds); client.setAccessTokenValiditySeconds(accessTokenValiditySeconds);
} }
/** /**
* @return * @return
* @see org.mitre.oauth2.model.ClientDetailsEntity#getRefreshTokenValiditySeconds() * @see org.mitre.oauth2.model.ClientDetailsEntity#getRefreshTokenValiditySeconds()
*/ */
public Integer getRefreshTokenValiditySeconds() { public Integer getRefreshTokenValiditySeconds() {
return client.getRefreshTokenValiditySeconds(); return client.getRefreshTokenValiditySeconds();
} }
/** /**
* @param refreshTokenValiditySeconds * @param refreshTokenValiditySeconds
* @see org.mitre.oauth2.model.ClientDetailsEntity#setRefreshTokenValiditySeconds(java.lang.Integer) * @see org.mitre.oauth2.model.ClientDetailsEntity#setRefreshTokenValiditySeconds(java.lang.Integer)
*/ */
public void setRefreshTokenValiditySeconds(Integer refreshTokenValiditySeconds) { public void setRefreshTokenValiditySeconds(Integer refreshTokenValiditySeconds) {
client.setRefreshTokenValiditySeconds(refreshTokenValiditySeconds); client.setRefreshTokenValiditySeconds(refreshTokenValiditySeconds);
} }
/** /**
* @return * @return
* @see org.mitre.oauth2.model.ClientDetailsEntity#getRedirectUris() * @see org.mitre.oauth2.model.ClientDetailsEntity#getRedirectUris()
*/ */
public Set<String> getRedirectUris() { public Set<String> getRedirectUris() {
return client.getRedirectUris(); return client.getRedirectUris();
} }
/** /**
* @param redirectUris * @param redirectUris
* @see org.mitre.oauth2.model.ClientDetailsEntity#setRedirectUris(java.util.Set) * @see org.mitre.oauth2.model.ClientDetailsEntity#setRedirectUris(java.util.Set)
*/ */
public void setRedirectUris(Set<String> redirectUris) { public void setRedirectUris(Set<String> redirectUris) {
client.setRedirectUris(redirectUris); client.setRedirectUris(redirectUris);
} }
/** /**
* @return * @return
* @see org.mitre.oauth2.model.ClientDetailsEntity#getRegisteredRedirectUri() * @see org.mitre.oauth2.model.ClientDetailsEntity#getRegisteredRedirectUri()
*/ */
public Set<String> getRegisteredRedirectUri() { public Set<String> getRegisteredRedirectUri() {
return client.getRegisteredRedirectUri(); return client.getRegisteredRedirectUri();
} }
/** /**
* @return * @return
* @see org.mitre.oauth2.model.ClientDetailsEntity#getResourceIds() * @see org.mitre.oauth2.model.ClientDetailsEntity#getResourceIds()
*/ */
public Set<String> getResourceIds() { public Set<String> getResourceIds() {
return client.getResourceIds(); return client.getResourceIds();
} }
/** /**
* @param resourceIds * @param resourceIds
* @see org.mitre.oauth2.model.ClientDetailsEntity#setResourceIds(java.util.Set) * @see org.mitre.oauth2.model.ClientDetailsEntity#setResourceIds(java.util.Set)
*/ */
public void setResourceIds(Set<String> resourceIds) { public void setResourceIds(Set<String> resourceIds) {
client.setResourceIds(resourceIds); client.setResourceIds(resourceIds);
} }
/** /**
* @return * @return
* @see org.mitre.oauth2.model.ClientDetailsEntity#getAdditionalInformation() * @see org.mitre.oauth2.model.ClientDetailsEntity#getAdditionalInformation()
*/ */
public Map<String, Object> getAdditionalInformation() { public Map<String, Object> getAdditionalInformation() {
return client.getAdditionalInformation(); return client.getAdditionalInformation();
} }
/** /**
* @return * @return
* @see org.mitre.oauth2.model.ClientDetailsEntity#getApplicationType() * @see org.mitre.oauth2.model.ClientDetailsEntity#getApplicationType()
*/ */
public AppType getApplicationType() { public AppType getApplicationType() {
return client.getApplicationType(); return client.getApplicationType();
} }
/** /**
* @param applicationType * @param applicationType
* @see org.mitre.oauth2.model.ClientDetailsEntity#setApplicationType(org.mitre.oauth2.model.ClientDetailsEntity.AppType) * @see org.mitre.oauth2.model.ClientDetailsEntity#setApplicationType(org.mitre.oauth2.model.ClientDetailsEntity.AppType)
*/ */
public void setApplicationType(AppType applicationType) { public void setApplicationType(AppType applicationType) {
client.setApplicationType(applicationType); client.setApplicationType(applicationType);
} }
/** /**
* @return * @return
* @see org.mitre.oauth2.model.ClientDetailsEntity#getClientName() * @see org.mitre.oauth2.model.ClientDetailsEntity#getClientName()
*/ */
public String getClientName() { public String getClientName() {
return client.getClientName(); return client.getClientName();
} }
/** /**
* @param clientName * @param clientName
* @see org.mitre.oauth2.model.ClientDetailsEntity#setClientName(java.lang.String) * @see org.mitre.oauth2.model.ClientDetailsEntity#setClientName(java.lang.String)
*/ */
public void setClientName(String clientName) { public void setClientName(String clientName) {
client.setClientName(clientName); client.setClientName(clientName);
} }
/** /**
* @return * @return
* @see org.mitre.oauth2.model.ClientDetailsEntity#getTokenEndpointAuthMethod() * @see org.mitre.oauth2.model.ClientDetailsEntity#getTokenEndpointAuthMethod()
*/ */
public AuthMethod getTokenEndpointAuthMethod() { public AuthMethod getTokenEndpointAuthMethod() {
return client.getTokenEndpointAuthMethod(); return client.getTokenEndpointAuthMethod();
} }
/** /**
* @param tokenEndpointAuthMethod * @param tokenEndpointAuthMethod
* @see org.mitre.oauth2.model.ClientDetailsEntity#setTokenEndpointAuthMethod(org.mitre.oauth2.model.ClientDetailsEntity.AuthMethod) * @see org.mitre.oauth2.model.ClientDetailsEntity#setTokenEndpointAuthMethod(org.mitre.oauth2.model.ClientDetailsEntity.AuthMethod)
*/ */
public void setTokenEndpointAuthMethod(AuthMethod tokenEndpointAuthMethod) { public void setTokenEndpointAuthMethod(AuthMethod tokenEndpointAuthMethod) {
client.setTokenEndpointAuthMethod(tokenEndpointAuthMethod); client.setTokenEndpointAuthMethod(tokenEndpointAuthMethod);
} }
/** /**
* @return * @return
* @see org.mitre.oauth2.model.ClientDetailsEntity#getSubjectType() * @see org.mitre.oauth2.model.ClientDetailsEntity#getSubjectType()
*/ */
public SubjectType getSubjectType() { public SubjectType getSubjectType() {
return client.getSubjectType(); return client.getSubjectType();
} }
/** /**
* @param subjectType * @param subjectType
* @see org.mitre.oauth2.model.ClientDetailsEntity#setSubjectType(org.mitre.oauth2.model.ClientDetailsEntity.SubjectType) * @see org.mitre.oauth2.model.ClientDetailsEntity#setSubjectType(org.mitre.oauth2.model.ClientDetailsEntity.SubjectType)
*/ */
public void setSubjectType(SubjectType subjectType) { public void setSubjectType(SubjectType subjectType) {
client.setSubjectType(subjectType); client.setSubjectType(subjectType);
} }
/** /**
* @return * @return
* @see org.mitre.oauth2.model.ClientDetailsEntity#getContacts() * @see org.mitre.oauth2.model.ClientDetailsEntity#getContacts()
*/ */
public Set<String> getContacts() { public Set<String> getContacts() {
return client.getContacts(); return client.getContacts();
} }
/** /**
* @param contacts * @param contacts
* @see org.mitre.oauth2.model.ClientDetailsEntity#setContacts(java.util.Set) * @see org.mitre.oauth2.model.ClientDetailsEntity#setContacts(java.util.Set)
*/ */
public void setContacts(Set<String> contacts) { public void setContacts(Set<String> contacts) {
client.setContacts(contacts); client.setContacts(contacts);
} }
/** /**
* @return * @return
* @see org.mitre.oauth2.model.ClientDetailsEntity#getLogoUri() * @see org.mitre.oauth2.model.ClientDetailsEntity#getLogoUri()
*/ */
public String getLogoUri() { public String getLogoUri() {
return client.getLogoUri(); return client.getLogoUri();
} }
/** /**
* @param logoUri * @param logoUri
* @see org.mitre.oauth2.model.ClientDetailsEntity#setLogoUri(java.lang.String) * @see org.mitre.oauth2.model.ClientDetailsEntity#setLogoUri(java.lang.String)
*/ */
public void setLogoUri(String logoUri) { public void setLogoUri(String logoUri) {
client.setLogoUri(logoUri); client.setLogoUri(logoUri);
} }
/** /**
* @return * @return
* @see org.mitre.oauth2.model.ClientDetailsEntity#getPolicyUri() * @see org.mitre.oauth2.model.ClientDetailsEntity#getPolicyUri()
*/ */
public String getPolicyUri() { public String getPolicyUri() {
return client.getPolicyUri(); return client.getPolicyUri();
} }
/** /**
* @param policyUri * @param policyUri
* @see org.mitre.oauth2.model.ClientDetailsEntity#setPolicyUri(java.lang.String) * @see org.mitre.oauth2.model.ClientDetailsEntity#setPolicyUri(java.lang.String)
*/ */
public void setPolicyUri(String policyUri) { public void setPolicyUri(String policyUri) {
client.setPolicyUri(policyUri); client.setPolicyUri(policyUri);
} }
/** /**
* @return * @return
* @see org.mitre.oauth2.model.ClientDetailsEntity#getClientUri() * @see org.mitre.oauth2.model.ClientDetailsEntity#getClientUri()
*/ */
public String getClientUri() { public String getClientUri() {
return client.getClientUri(); return client.getClientUri();
} }
/** /**
* @param clientUri * @param clientUri
* @see org.mitre.oauth2.model.ClientDetailsEntity#setClientUri(java.lang.String) * @see org.mitre.oauth2.model.ClientDetailsEntity#setClientUri(java.lang.String)
*/ */
public void setClientUri(String clientUri) { public void setClientUri(String clientUri) {
client.setClientUri(clientUri); client.setClientUri(clientUri);
} }
/** /**
* @return * @return
* @see org.mitre.oauth2.model.ClientDetailsEntity#getTosUri() * @see org.mitre.oauth2.model.ClientDetailsEntity#getTosUri()
*/ */
public String getTosUri() { public String getTosUri() {
return client.getTosUri(); return client.getTosUri();
} }
/** /**
* @param tosUri * @param tosUri
* @see org.mitre.oauth2.model.ClientDetailsEntity#setTosUri(java.lang.String) * @see org.mitre.oauth2.model.ClientDetailsEntity#setTosUri(java.lang.String)
*/ */
public void setTosUri(String tosUri) { public void setTosUri(String tosUri) {
client.setTosUri(tosUri); client.setTosUri(tosUri);
} }
/** /**
* @return * @return
* @see org.mitre.oauth2.model.ClientDetailsEntity#getJwksUri() * @see org.mitre.oauth2.model.ClientDetailsEntity#getJwksUri()
*/ */
public String getJwksUri() { public String getJwksUri() {
return client.getJwksUri(); return client.getJwksUri();
} }
/** /**
* @param jwksUri * @param jwksUri
* @see org.mitre.oauth2.model.ClientDetailsEntity#setJwksUri(java.lang.String) * @see org.mitre.oauth2.model.ClientDetailsEntity#setJwksUri(java.lang.String)
*/ */
public void setJwksUri(String jwksUri) { public void setJwksUri(String jwksUri) {
client.setJwksUri(jwksUri); client.setJwksUri(jwksUri);
} }
/** /**
* @return * @return
* @see org.mitre.oauth2.model.ClientDetailsEntity#getSectorIdentifierUri() * @see org.mitre.oauth2.model.ClientDetailsEntity#getSectorIdentifierUri()
*/ */
public String getSectorIdentifierUri() { public String getSectorIdentifierUri() {
return client.getSectorIdentifierUri(); return client.getSectorIdentifierUri();
} }
/** /**
* @param sectorIdentifierUri * @param sectorIdentifierUri
* @see org.mitre.oauth2.model.ClientDetailsEntity#setSectorIdentifierUri(java.lang.String) * @see org.mitre.oauth2.model.ClientDetailsEntity#setSectorIdentifierUri(java.lang.String)
*/ */
public void setSectorIdentifierUri(String sectorIdentifierUri) { public void setSectorIdentifierUri(String sectorIdentifierUri) {
client.setSectorIdentifierUri(sectorIdentifierUri); client.setSectorIdentifierUri(sectorIdentifierUri);
} }
/** /**
* @return * @return
* @see org.mitre.oauth2.model.ClientDetailsEntity#getRequestObjectSigningAlg() * @see org.mitre.oauth2.model.ClientDetailsEntity#getRequestObjectSigningAlg()
*/ */
public JWSAlgorithmEmbed getRequestObjectSigningAlg() { public JWSAlgorithmEmbed getRequestObjectSigningAlg() {
return client.getRequestObjectSigningAlg(); return client.getRequestObjectSigningAlg();
} }
/** /**
* @param requestObjectSigningAlg * @param requestObjectSigningAlg
* @see org.mitre.oauth2.model.ClientDetailsEntity#setRequestObjectSigningAlg(org.mitre.jose.JWSAlgorithmEmbed) * @see org.mitre.oauth2.model.ClientDetailsEntity#setRequestObjectSigningAlg(org.mitre.jose.JWSAlgorithmEmbed)
*/ */
public void setRequestObjectSigningAlg(JWSAlgorithmEmbed requestObjectSigningAlg) { public void setRequestObjectSigningAlg(JWSAlgorithmEmbed requestObjectSigningAlg) {
client.setRequestObjectSigningAlg(requestObjectSigningAlg); client.setRequestObjectSigningAlg(requestObjectSigningAlg);
} }
/** /**
* @return * @return
* @see org.mitre.oauth2.model.ClientDetailsEntity#getUserInfoSignedResponseAlg() * @see org.mitre.oauth2.model.ClientDetailsEntity#getUserInfoSignedResponseAlg()
*/ */
public JWSAlgorithmEmbed getUserInfoSignedResponseAlg() { public JWSAlgorithmEmbed getUserInfoSignedResponseAlg() {
return client.getUserInfoSignedResponseAlg(); return client.getUserInfoSignedResponseAlg();
} }
/** /**
* @param userInfoSignedResponseAlg * @param userInfoSignedResponseAlg
* @see org.mitre.oauth2.model.ClientDetailsEntity#setUserInfoSignedResponseAlg(org.mitre.jose.JWSAlgorithmEmbed) * @see org.mitre.oauth2.model.ClientDetailsEntity#setUserInfoSignedResponseAlg(org.mitre.jose.JWSAlgorithmEmbed)
*/ */
public void setUserInfoSignedResponseAlg(JWSAlgorithmEmbed userInfoSignedResponseAlg) { public void setUserInfoSignedResponseAlg(JWSAlgorithmEmbed userInfoSignedResponseAlg) {
client.setUserInfoSignedResponseAlg(userInfoSignedResponseAlg); client.setUserInfoSignedResponseAlg(userInfoSignedResponseAlg);
} }
/** /**
* @return * @return
* @see org.mitre.oauth2.model.ClientDetailsEntity#getUserInfoEncryptedResponseAlg() * @see org.mitre.oauth2.model.ClientDetailsEntity#getUserInfoEncryptedResponseAlg()
*/ */
public JWEAlgorithmEmbed getUserInfoEncryptedResponseAlg() { public JWEAlgorithmEmbed getUserInfoEncryptedResponseAlg() {
return client.getUserInfoEncryptedResponseAlg(); return client.getUserInfoEncryptedResponseAlg();
} }
/** /**
* @param userInfoEncryptedResponseAlg * @param userInfoEncryptedResponseAlg
* @see org.mitre.oauth2.model.ClientDetailsEntity#setUserInfoEncryptedResponseAlg(org.mitre.jose.JWEAlgorithmEmbed) * @see org.mitre.oauth2.model.ClientDetailsEntity#setUserInfoEncryptedResponseAlg(org.mitre.jose.JWEAlgorithmEmbed)
*/ */
public void setUserInfoEncryptedResponseAlg(JWEAlgorithmEmbed userInfoEncryptedResponseAlg) { public void setUserInfoEncryptedResponseAlg(JWEAlgorithmEmbed userInfoEncryptedResponseAlg) {
client.setUserInfoEncryptedResponseAlg(userInfoEncryptedResponseAlg); client.setUserInfoEncryptedResponseAlg(userInfoEncryptedResponseAlg);
} }
/** /**
* @return * @return
* @see org.mitre.oauth2.model.ClientDetailsEntity#getUserInfoEncryptedResponseEnc() * @see org.mitre.oauth2.model.ClientDetailsEntity#getUserInfoEncryptedResponseEnc()
*/ */
public JWEEncryptionMethodEmbed getUserInfoEncryptedResponseEnc() { public JWEEncryptionMethodEmbed getUserInfoEncryptedResponseEnc() {
return client.getUserInfoEncryptedResponseEnc(); return client.getUserInfoEncryptedResponseEnc();
} }
/** /**
* @param userInfoEncryptedResponseEnc * @param userInfoEncryptedResponseEnc
* @see org.mitre.oauth2.model.ClientDetailsEntity#setUserInfoEncryptedResponseEnc(org.mitre.jose.JWEEncryptionMethodEmbed) * @see org.mitre.oauth2.model.ClientDetailsEntity#setUserInfoEncryptedResponseEnc(org.mitre.jose.JWEEncryptionMethodEmbed)
*/ */
public void setUserInfoEncryptedResponseEnc(JWEEncryptionMethodEmbed userInfoEncryptedResponseEnc) { public void setUserInfoEncryptedResponseEnc(JWEEncryptionMethodEmbed userInfoEncryptedResponseEnc) {
client.setUserInfoEncryptedResponseEnc(userInfoEncryptedResponseEnc); client.setUserInfoEncryptedResponseEnc(userInfoEncryptedResponseEnc);
} }
/** /**
* @return * @return
* @see org.mitre.oauth2.model.ClientDetailsEntity#getIdTokenSignedResponseAlg() * @see org.mitre.oauth2.model.ClientDetailsEntity#getIdTokenSignedResponseAlg()
*/ */
public JWSAlgorithmEmbed getIdTokenSignedResponseAlg() { public JWSAlgorithmEmbed getIdTokenSignedResponseAlg() {
return client.getIdTokenSignedResponseAlg(); return client.getIdTokenSignedResponseAlg();
} }
/** /**
* @param idTokenSignedResponseAlg * @param idTokenSignedResponseAlg
* @see org.mitre.oauth2.model.ClientDetailsEntity#setIdTokenSignedResponseAlg(org.mitre.jose.JWSAlgorithmEmbed) * @see org.mitre.oauth2.model.ClientDetailsEntity#setIdTokenSignedResponseAlg(org.mitre.jose.JWSAlgorithmEmbed)
*/ */
public void setIdTokenSignedResponseAlg(JWSAlgorithmEmbed idTokenSignedResponseAlg) { public void setIdTokenSignedResponseAlg(JWSAlgorithmEmbed idTokenSignedResponseAlg) {
client.setIdTokenSignedResponseAlg(idTokenSignedResponseAlg); client.setIdTokenSignedResponseAlg(idTokenSignedResponseAlg);
} }
/** /**
* @return * @return
* @see org.mitre.oauth2.model.ClientDetailsEntity#getIdTokenEncryptedResponseAlg() * @see org.mitre.oauth2.model.ClientDetailsEntity#getIdTokenEncryptedResponseAlg()
*/ */
public JWEAlgorithmEmbed getIdTokenEncryptedResponseAlg() { public JWEAlgorithmEmbed getIdTokenEncryptedResponseAlg() {
return client.getIdTokenEncryptedResponseAlg(); return client.getIdTokenEncryptedResponseAlg();
} }
/** /**
* @param idTokenEncryptedResponseAlg * @param idTokenEncryptedResponseAlg
* @see org.mitre.oauth2.model.ClientDetailsEntity#setIdTokenEncryptedResponseAlg(org.mitre.jose.JWEAlgorithmEmbed) * @see org.mitre.oauth2.model.ClientDetailsEntity#setIdTokenEncryptedResponseAlg(org.mitre.jose.JWEAlgorithmEmbed)
*/ */
public void setIdTokenEncryptedResponseAlg(JWEAlgorithmEmbed idTokenEncryptedResponseAlg) { public void setIdTokenEncryptedResponseAlg(JWEAlgorithmEmbed idTokenEncryptedResponseAlg) {
client.setIdTokenEncryptedResponseAlg(idTokenEncryptedResponseAlg); client.setIdTokenEncryptedResponseAlg(idTokenEncryptedResponseAlg);
} }
/** /**
* @return * @return
* @see org.mitre.oauth2.model.ClientDetailsEntity#getIdTokenEncryptedResponseEnc() * @see org.mitre.oauth2.model.ClientDetailsEntity#getIdTokenEncryptedResponseEnc()
*/ */
public JWEEncryptionMethodEmbed getIdTokenEncryptedResponseEnc() { public JWEEncryptionMethodEmbed getIdTokenEncryptedResponseEnc() {
return client.getIdTokenEncryptedResponseEnc(); return client.getIdTokenEncryptedResponseEnc();
} }
/** /**
* @param idTokenEncryptedResponseEnc * @param idTokenEncryptedResponseEnc
* @see org.mitre.oauth2.model.ClientDetailsEntity#setIdTokenEncryptedResponseEnc(org.mitre.jose.JWEEncryptionMethodEmbed) * @see org.mitre.oauth2.model.ClientDetailsEntity#setIdTokenEncryptedResponseEnc(org.mitre.jose.JWEEncryptionMethodEmbed)
*/ */
public void setIdTokenEncryptedResponseEnc(JWEEncryptionMethodEmbed idTokenEncryptedResponseEnc) { public void setIdTokenEncryptedResponseEnc(JWEEncryptionMethodEmbed idTokenEncryptedResponseEnc) {
client.setIdTokenEncryptedResponseEnc(idTokenEncryptedResponseEnc); client.setIdTokenEncryptedResponseEnc(idTokenEncryptedResponseEnc);
} }
/** /**
* @return * @return
* @see org.mitre.oauth2.model.ClientDetailsEntity#getDefaultMaxAge() * @see org.mitre.oauth2.model.ClientDetailsEntity#getDefaultMaxAge()
*/ */
public Integer getDefaultMaxAge() { public Integer getDefaultMaxAge() {
return client.getDefaultMaxAge(); return client.getDefaultMaxAge();
} }
/** /**
* @param defaultMaxAge * @param defaultMaxAge
* @see org.mitre.oauth2.model.ClientDetailsEntity#setDefaultMaxAge(java.lang.Integer) * @see org.mitre.oauth2.model.ClientDetailsEntity#setDefaultMaxAge(java.lang.Integer)
*/ */
public void setDefaultMaxAge(Integer defaultMaxAge) { public void setDefaultMaxAge(Integer defaultMaxAge) {
client.setDefaultMaxAge(defaultMaxAge); client.setDefaultMaxAge(defaultMaxAge);
} }
/** /**
* @return * @return
* @see org.mitre.oauth2.model.ClientDetailsEntity#getRequireAuthTime() * @see org.mitre.oauth2.model.ClientDetailsEntity#getRequireAuthTime()
*/ */
public Boolean getRequireAuthTime() { public Boolean getRequireAuthTime() {
return client.getRequireAuthTime(); return client.getRequireAuthTime();
} }
/** /**
* @param requireAuthTime * @param requireAuthTime
* @see org.mitre.oauth2.model.ClientDetailsEntity#setRequireAuthTime(java.lang.Boolean) * @see org.mitre.oauth2.model.ClientDetailsEntity#setRequireAuthTime(java.lang.Boolean)
*/ */
public void setRequireAuthTime(Boolean requireAuthTime) { public void setRequireAuthTime(Boolean requireAuthTime) {
client.setRequireAuthTime(requireAuthTime); client.setRequireAuthTime(requireAuthTime);
} }
/** /**
* @return * @return
* @see org.mitre.oauth2.model.ClientDetailsEntity#getResponseTypes() * @see org.mitre.oauth2.model.ClientDetailsEntity#getResponseTypes()
*/ */
public Set<String> getResponseTypes() { public Set<String> getResponseTypes() {
return client.getResponseTypes(); return client.getResponseTypes();
} }
/** /**
* @param responseTypes * @param responseTypes
* @see org.mitre.oauth2.model.ClientDetailsEntity#setResponseTypes(java.util.Set) * @see org.mitre.oauth2.model.ClientDetailsEntity#setResponseTypes(java.util.Set)
*/ */
public void setResponseTypes(Set<String> responseTypes) { public void setResponseTypes(Set<String> responseTypes) {
client.setResponseTypes(responseTypes); client.setResponseTypes(responseTypes);
} }
/** /**
* @return * @return
* @see org.mitre.oauth2.model.ClientDetailsEntity#getDefaultACRvalues() * @see org.mitre.oauth2.model.ClientDetailsEntity#getDefaultACRvalues()
*/ */
public Set<String> getDefaultACRvalues() { public Set<String> getDefaultACRvalues() {
return client.getDefaultACRvalues(); return client.getDefaultACRvalues();
} }
/** /**
* @param defaultACRvalues * @param defaultACRvalues
* @see org.mitre.oauth2.model.ClientDetailsEntity#setDefaultACRvalues(java.util.Set) * @see org.mitre.oauth2.model.ClientDetailsEntity#setDefaultACRvalues(java.util.Set)
*/ */
public void setDefaultACRvalues(Set<String> defaultACRvalues) { public void setDefaultACRvalues(Set<String> defaultACRvalues) {
client.setDefaultACRvalues(defaultACRvalues); client.setDefaultACRvalues(defaultACRvalues);
} }
/** /**
* @return * @return
* @see org.mitre.oauth2.model.ClientDetailsEntity#getInitiateLoginUri() * @see org.mitre.oauth2.model.ClientDetailsEntity#getInitiateLoginUri()
*/ */
public String getInitiateLoginUri() { public String getInitiateLoginUri() {
return client.getInitiateLoginUri(); return client.getInitiateLoginUri();
} }
/** /**
* @param initiateLoginUri * @param initiateLoginUri
* @see org.mitre.oauth2.model.ClientDetailsEntity#setInitiateLoginUri(java.lang.String) * @see org.mitre.oauth2.model.ClientDetailsEntity#setInitiateLoginUri(java.lang.String)
*/ */
public void setInitiateLoginUri(String initiateLoginUri) { public void setInitiateLoginUri(String initiateLoginUri) {
client.setInitiateLoginUri(initiateLoginUri); client.setInitiateLoginUri(initiateLoginUri);
} }
/** /**
* @return * @return
* @see org.mitre.oauth2.model.ClientDetailsEntity#getPostLogoutRedirectUri() * @see org.mitre.oauth2.model.ClientDetailsEntity#getPostLogoutRedirectUri()
*/ */
public String getPostLogoutRedirectUri() { public String getPostLogoutRedirectUri() {
return client.getPostLogoutRedirectUri(); return client.getPostLogoutRedirectUri();
} }
/** /**
* @param postLogoutRedirectUri * @param postLogoutRedirectUri
* @see org.mitre.oauth2.model.ClientDetailsEntity#setPostLogoutRedirectUri(java.lang.String) * @see org.mitre.oauth2.model.ClientDetailsEntity#setPostLogoutRedirectUri(java.lang.String)
*/ */
public void setPostLogoutRedirectUri(String postLogoutRedirectUri) { public void setPostLogoutRedirectUri(String postLogoutRedirectUri) {
client.setPostLogoutRedirectUri(postLogoutRedirectUri); client.setPostLogoutRedirectUri(postLogoutRedirectUri);
} }
/** /**
* @return * @return
* @see org.mitre.oauth2.model.ClientDetailsEntity#getRequestUris() * @see org.mitre.oauth2.model.ClientDetailsEntity#getRequestUris()
*/ */
public Set<String> getRequestUris() { public Set<String> getRequestUris() {
return client.getRequestUris(); return client.getRequestUris();
} }
/** /**
* @param requestUris * @param requestUris
* @see org.mitre.oauth2.model.ClientDetailsEntity#setRequestUris(java.util.Set) * @see org.mitre.oauth2.model.ClientDetailsEntity#setRequestUris(java.util.Set)
*/ */
public void setRequestUris(Set<String> requestUris) { public void setRequestUris(Set<String> requestUris) {
client.setRequestUris(requestUris); client.setRequestUris(requestUris);
} }
/** /**
* @return * @return
* @see org.mitre.oauth2.model.ClientDetailsEntity#getCreatedAt() * @see org.mitre.oauth2.model.ClientDetailsEntity#getCreatedAt()
*/ */
public Date getCreatedAt() { public Date getCreatedAt() {
return client.getCreatedAt(); return client.getCreatedAt();
} }
/** /**
* @param createdAt * @param createdAt
* @see org.mitre.oauth2.model.ClientDetailsEntity#setCreatedAt(java.util.Date) * @see org.mitre.oauth2.model.ClientDetailsEntity#setCreatedAt(java.util.Date)
*/ */
public void setCreatedAt(Date createdAt) { public void setCreatedAt(Date createdAt) {
client.setCreatedAt(createdAt); client.setCreatedAt(createdAt);
} }
/** /**
* @return the registrationAccessToken * @return the registrationAccessToken
*/ */

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -29,7 +28,6 @@ import org.mitre.oauth2.model.ClientDetailsEntity;
import org.mitre.oauth2.model.ClientDetailsEntity.AppType; import org.mitre.oauth2.model.ClientDetailsEntity.AppType;
import org.mitre.oauth2.model.ClientDetailsEntity.AuthMethod; import org.mitre.oauth2.model.ClientDetailsEntity.AuthMethod;
import org.mitre.oauth2.model.ClientDetailsEntity.SubjectType; import org.mitre.oauth2.model.ClientDetailsEntity.SubjectType;
import org.mitre.oauth2.model.OAuth2AccessTokenEntity;
import org.mitre.oauth2.model.RegisteredClient; import org.mitre.oauth2.model.RegisteredClient;
import com.google.common.base.Joiner; import com.google.common.base.Joiner;

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -142,86 +141,86 @@ public class ServerConfiguration {
/* (non-Javadoc) /* (non-Javadoc)
* @see java.lang.Object#hashCode() * @see java.lang.Object#hashCode()
*/ */
@Override @Override
public int hashCode() { public int hashCode() {
final int prime = 31; final int prime = 31;
int result = 1; int result = 1;
result = prime * result + ((authorizationEndpointUri == null) ? 0 : authorizationEndpointUri.hashCode()); result = prime * result + ((authorizationEndpointUri == null) ? 0 : authorizationEndpointUri.hashCode());
result = prime * result + ((introspectionEndpointUri == null) ? 0 : introspectionEndpointUri.hashCode()); result = prime * result + ((introspectionEndpointUri == null) ? 0 : introspectionEndpointUri.hashCode());
result = prime * result + ((issuer == null) ? 0 : issuer.hashCode()); result = prime * result + ((issuer == null) ? 0 : issuer.hashCode());
result = prime * result + ((jwksUri == null) ? 0 : jwksUri.hashCode()); result = prime * result + ((jwksUri == null) ? 0 : jwksUri.hashCode());
result = prime * result + ((registrationEndpointUri == null) ? 0 : registrationEndpointUri.hashCode()); result = prime * result + ((registrationEndpointUri == null) ? 0 : registrationEndpointUri.hashCode());
result = prime * result + ((tokenEndpointUri == null) ? 0 : tokenEndpointUri.hashCode()); result = prime * result + ((tokenEndpointUri == null) ? 0 : tokenEndpointUri.hashCode());
result = prime * result + ((userInfoUri == null) ? 0 : userInfoUri.hashCode()); result = prime * result + ((userInfoUri == null) ? 0 : userInfoUri.hashCode());
return result; return result;
} }
/* (non-Javadoc) /* (non-Javadoc)
* @see java.lang.Object#equals(java.lang.Object) * @see java.lang.Object#equals(java.lang.Object)
*/ */
@Override @Override
public boolean equals(Object obj) { public boolean equals(Object obj) {
if (this == obj) { if (this == obj) {
return true; return true;
} }
if (obj == null) { if (obj == null) {
return false; return false;
} }
if (!(obj instanceof ServerConfiguration)) { if (!(obj instanceof ServerConfiguration)) {
return false; return false;
} }
ServerConfiguration other = (ServerConfiguration) obj; ServerConfiguration other = (ServerConfiguration) obj;
if (authorizationEndpointUri == null) { if (authorizationEndpointUri == null) {
if (other.authorizationEndpointUri != null) { if (other.authorizationEndpointUri != null) {
return false; return false;
} }
} else if (!authorizationEndpointUri.equals(other.authorizationEndpointUri)) { } else if (!authorizationEndpointUri.equals(other.authorizationEndpointUri)) {
return false; return false;
} }
if (introspectionEndpointUri == null) { if (introspectionEndpointUri == null) {
if (other.introspectionEndpointUri != null) { if (other.introspectionEndpointUri != null) {
return false; return false;
} }
} else if (!introspectionEndpointUri.equals(other.introspectionEndpointUri)) { } else if (!introspectionEndpointUri.equals(other.introspectionEndpointUri)) {
return false; return false;
} }
if (issuer == null) { if (issuer == null) {
if (other.issuer != null) { if (other.issuer != null) {
return false; return false;
} }
} else if (!issuer.equals(other.issuer)) { } else if (!issuer.equals(other.issuer)) {
return false; return false;
} }
if (jwksUri == null) { if (jwksUri == null) {
if (other.jwksUri != null) { if (other.jwksUri != null) {
return false; return false;
} }
} else if (!jwksUri.equals(other.jwksUri)) { } else if (!jwksUri.equals(other.jwksUri)) {
return false; return false;
} }
if (registrationEndpointUri == null) { if (registrationEndpointUri == null) {
if (other.registrationEndpointUri != null) { if (other.registrationEndpointUri != null) {
return false; return false;
} }
} else if (!registrationEndpointUri.equals(other.registrationEndpointUri)) { } else if (!registrationEndpointUri.equals(other.registrationEndpointUri)) {
return false; return false;
} }
if (tokenEndpointUri == null) { if (tokenEndpointUri == null) {
if (other.tokenEndpointUri != null) { if (other.tokenEndpointUri != null) {
return false; return false;
} }
} else if (!tokenEndpointUri.equals(other.tokenEndpointUri)) { } else if (!tokenEndpointUri.equals(other.tokenEndpointUri)) {
return false; return false;
} }
if (userInfoUri == null) { if (userInfoUri == null) {
if (other.userInfoUri != null) { if (other.userInfoUri != null) {
return false; return false;
} }
} else if (!userInfoUri.equals(other.userInfoUri)) { } else if (!userInfoUri.equals(other.userInfoUri)) {
return false; return false;
} }
return true; return true;
} }
} }

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -42,7 +41,7 @@ public interface StatsService {
* *
* @return a map of id of client object to number of approvals * @return a map of id of client object to number of approvals
*/ */
public Map<Long, Integer> calculateByClientId(); public Map<Long, Integer> calculateByClientId();
/** /**
* Calculate the usage count for a single client * Calculate the usage count for a single client
@ -50,6 +49,6 @@ public interface StatsService {
* @param id the id of the client to search on * @param id the id of the client to search on
* @return * @return
*/ */
public Integer countForClientId(Long id); public Integer countForClientId(Long id);
} }

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -64,7 +63,7 @@ public class UserInfoInterceptor extends HandlerInterceptorAdapter {
modelAndView.addObject("userInfo", user); modelAndView.addObject("userInfo", user);
} }
} }
} }
} }
} }

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,6 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright 2013 The MITRE Corporation * Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
* and the MIT Kerberos and Internet Trust Consortium
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -16,15 +15,12 @@
******************************************************************************/ ******************************************************************************/
package org.mitre.discovery.util; package org.mitre.discovery.util;
import static org.junit.Assert.*;
import java.util.List;
import org.junit.Test; import org.junit.Test;
import org.springframework.web.util.UriComponents; import org.springframework.web.util.UriComponents;
import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Lists;
import static org.junit.Assert.assertEquals;
/** /**
* @author wkim * @author wkim

View File

@ -1,3 +1,18 @@
/*******************************************************************************
* Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
******************************************************************************/
/** /**
* *
*/ */
@ -9,7 +24,7 @@ import com.nimbusds.jose.EncryptionMethod;
import com.nimbusds.jose.JWEAlgorithm; import com.nimbusds.jose.JWEAlgorithm;
import com.nimbusds.jose.JWSAlgorithm; import com.nimbusds.jose.JWSAlgorithm;
import static org.junit.Assert.*; import static org.junit.Assert.assertEquals;
/** /**
* *

View File

@ -1,3 +1,18 @@
/*******************************************************************************
* Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
******************************************************************************/
/** /**
* *
*/ */
@ -13,7 +28,7 @@ import com.google.common.collect.ImmutableSet;
import com.nimbusds.jose.EncryptionMethod; import com.nimbusds.jose.EncryptionMethod;
import com.nimbusds.jose.JWEAlgorithm; import com.nimbusds.jose.JWEAlgorithm;
import static org.junit.Assert.*; import static org.junit.Assert.assertEquals;
/** /**
* @author jricher * @author jricher

View File

@ -1,3 +1,18 @@
/*******************************************************************************
* Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
******************************************************************************/
/** /**
* *
*/ */
@ -13,7 +28,7 @@ import com.google.common.collect.ImmutableSet;
import com.nimbusds.jose.EncryptionMethod; import com.nimbusds.jose.EncryptionMethod;
import com.nimbusds.jose.JWEAlgorithm; import com.nimbusds.jose.JWEAlgorithm;
import static org.junit.Assert.*; import static org.junit.Assert.assertEquals;
/** /**
* @author jricher * @author jricher

View File

@ -1,3 +1,18 @@
/*******************************************************************************
* Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
******************************************************************************/
/** /**
* *
*/ */
@ -17,7 +32,8 @@ import com.google.gson.JsonObject;
import com.nimbusds.jose.EncryptionMethod; import com.nimbusds.jose.EncryptionMethod;
import com.nimbusds.jose.JWEAlgorithm; import com.nimbusds.jose.JWEAlgorithm;
import static org.junit.Assert.*; import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
/** /**
* @author jricher * @author jricher
@ -170,7 +186,7 @@ public class ClientDetailsEntityJsonProcessorTest {
assertEquals(ClientDetailsEntity.AppType.WEB.getValue(), j.get("application_type").getAsString()); assertEquals(ClientDetailsEntity.AppType.WEB.getValue(), j.get("application_type").getAsString());
for (JsonElement e : j.get("redirect_uris").getAsJsonArray()) { for (JsonElement e : j.get("redirect_uris").getAsJsonArray()) {
assertTrue(ImmutableSet.of("https://client.example.org/callback", "https://client.example.org/callback2").contains(e.getAsString())); assertTrue(ImmutableSet.of("https://client.example.org/callback", "https://client.example.org/callback2").contains(e.getAsString()));
} }
assertEquals("My Example", j.get("client_name").getAsString()); assertEquals("My Example", j.get("client_name").getAsString());
for (JsonElement e : j.get("response_types").getAsJsonArray()) { for (JsonElement e : j.get("response_types").getAsJsonArray()) {
assertTrue(ImmutableSet.of("code", "token").contains(e.getAsString())); assertTrue(ImmutableSet.of("code", "token").contains(e.getAsString()));

View File

@ -1,3 +1,18 @@
/*******************************************************************************
* Copyright 2013 The MITRE Corporation and the MIT Kerberos and Internet Trust Consortuim
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
******************************************************************************/
/** /**
* *
*/ */
@ -5,7 +20,7 @@ package org.mitre.openid.connect.config;
import org.junit.Test; import org.junit.Test;
import static org.junit.Assert.*; import static org.junit.Assert.assertEquals;
/** /**
* @author jricher * @author jricher

Some files were not shown because too many files have changed in this diff Show More