From cf0ade86fed48e44cddb530e2451dc68d817ce81 Mon Sep 17 00:00:00 2001 From: Rob Winch <362503+rwinch@users.noreply.github.com> Date: Fri, 12 Sep 2025 15:12:47 -0500 Subject: [PATCH] Update Kerberos Sample Copyright Issue gh-17879 --- .../examples/kerberos/AuthProviderConfig.java | 5 +++-- .../kerberos/AuthProviderConfigTest.java | 19 +++++++++++-------- .../kerberos/DummyUserDetailsService.java | 5 +++-- .../KerberosLdapContextSourceConfig.java | 5 +++-- .../kerberos/KerberosRestTemplateConfig.java | 5 +++-- .../ROOT/examples/kerberos/SpnegoConfig.java | 5 +++-- 6 files changed, 26 insertions(+), 18 deletions(-) diff --git a/docs/modules/ROOT/examples/kerberos/AuthProviderConfig.java b/docs/modules/ROOT/examples/kerberos/AuthProviderConfig.java index 2b166a542c..cf5ddbfefa 100644 --- a/docs/modules/ROOT/examples/kerberos/AuthProviderConfig.java +++ b/docs/modules/ROOT/examples/kerberos/AuthProviderConfig.java @@ -1,11 +1,11 @@ /* - * Copyright 2015 the original author or authors. + * Copyright 2004-present the original author or authors. * * 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 + * https://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, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.security.kerberos.docs; import org.springframework.beans.factory.annotation.Value; diff --git a/docs/modules/ROOT/examples/kerberos/AuthProviderConfigTest.java b/docs/modules/ROOT/examples/kerberos/AuthProviderConfigTest.java index 26befa3b6f..e57aeba4e7 100644 --- a/docs/modules/ROOT/examples/kerberos/AuthProviderConfigTest.java +++ b/docs/modules/ROOT/examples/kerberos/AuthProviderConfigTest.java @@ -1,16 +1,19 @@ /* - * Copyright 2002-2015 the original author or authors. + * Copyright 2004-present the original author or authors. * - * 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 + * 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 + * https://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. + * 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.springframework.security.kerberos.docs; import org.junit.Test; diff --git a/docs/modules/ROOT/examples/kerberos/DummyUserDetailsService.java b/docs/modules/ROOT/examples/kerberos/DummyUserDetailsService.java index e92ff90702..b549357cc5 100644 --- a/docs/modules/ROOT/examples/kerberos/DummyUserDetailsService.java +++ b/docs/modules/ROOT/examples/kerberos/DummyUserDetailsService.java @@ -1,11 +1,11 @@ /* - * Copyright 2015 the original author or authors. + * Copyright 2004-present the original author or authors. * * 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 + * https://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, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.security.kerberos.docs; import org.springframework.security.core.authority.AuthorityUtils; diff --git a/docs/modules/ROOT/examples/kerberos/KerberosLdapContextSourceConfig.java b/docs/modules/ROOT/examples/kerberos/KerberosLdapContextSourceConfig.java index 2dd97f9980..d5a53d5c25 100644 --- a/docs/modules/ROOT/examples/kerberos/KerberosLdapContextSourceConfig.java +++ b/docs/modules/ROOT/examples/kerberos/KerberosLdapContextSourceConfig.java @@ -1,11 +1,11 @@ /* - * Copyright 2015 the original author or authors. + * Copyright 2004-present the original author or authors. * * 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 + * https://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, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.security.kerberos.client.docs; import org.springframework.beans.factory.annotation.Value; diff --git a/docs/modules/ROOT/examples/kerberos/KerberosRestTemplateConfig.java b/docs/modules/ROOT/examples/kerberos/KerberosRestTemplateConfig.java index ddff55fbf7..07d8465a25 100644 --- a/docs/modules/ROOT/examples/kerberos/KerberosRestTemplateConfig.java +++ b/docs/modules/ROOT/examples/kerberos/KerberosRestTemplateConfig.java @@ -1,11 +1,11 @@ /* - * Copyright 2015 the original author or authors. + * Copyright 2004-present the original author or authors. * * 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 + * https://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, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.security.kerberos.client.docs; import org.springframework.security.kerberos.client.KerberosRestTemplate; diff --git a/docs/modules/ROOT/examples/kerberos/SpnegoConfig.java b/docs/modules/ROOT/examples/kerberos/SpnegoConfig.java index 4ac1f87f55..10cf033556 100644 --- a/docs/modules/ROOT/examples/kerberos/SpnegoConfig.java +++ b/docs/modules/ROOT/examples/kerberos/SpnegoConfig.java @@ -1,11 +1,11 @@ /* - * Copyright 2015 the original author or authors. + * Copyright 2004-present the original author or authors. * * 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 + * https://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, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.security.kerberos.docs; import org.springframework.beans.factory.annotation.Value;