Skip to content

Commit

Permalink
Update copyright headers
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverhaagh committed Sep 3, 2024
1 parent 58105ad commit ea31363
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 23 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/* Copyright 2017 Danish Maritime Authority.
/*
* Copyright 2017 Danish Maritime Authority.
* Copyright 2020 Maritime Connectivity Platform Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/* Copyright 2017 Danish Maritime Authority.
/*
* Copyright 2017 Danish Maritime Authority.
* Copyright 2020 Maritime Connectivity Platform Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/* Copyright 2017 Danish Maritime Authority.
/*
* Copyright 2017 Danish Maritime Authority.
* Copyright 2020 Maritime Connectivity Platform Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/* Copyright 2017 Danish Maritime Authority.
/*
* Copyright 2017 Danish Maritime Authority.
* Copyright 2020 Maritime Connectivity Platform Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
/* Copyright 2017 Danish Maritime Authority.
*
* 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.
*/
/*
* Copyright 2017 Danish Maritime Authority.
* Copyright 2020 Maritime Connectivity Platform Consortium
*
* 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 net.maritimeconnectivity.identityregistry.keycloak.spi.eventprovider;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/* Copyright 2017 Danish Maritime Authority.
/*
* Copyright 2017 Danish Maritime Authority.
* Copyright 2020 Maritime Connectivity Platform Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -14,7 +16,6 @@
*/
package net.maritimeconnectivity.identityregistry.keycloak.spi.authenticators.certificate;

import jakarta.ws.rs.core.HttpHeaders;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.keycloak.authentication.AuthenticationFlowContext;
Expand All @@ -25,6 +26,7 @@
import org.keycloak.models.UserModel;
import org.keycloak.models.UserProvider;

import jakarta.ws.rs.core.HttpHeaders;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/* Copyright 2017 Danish Maritime Authority.
/*
* Copyright 2017 Danish Maritime Authority.
* Copyright 2020 Maritime Connectivity Platform Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -116,7 +118,7 @@ void onEventSkipIdp() {
given(this.mockedEvent.getDetails()).willReturn(details);

// Put "certificates" in the list of identity_providers that should be skipped.
String[] noSyncIdps = new String[]{ "certificates" };
String[] noSyncIdps = new String[]{"certificates"};

mcpEventListenerProvider = new MCPEventListenerProvider(null, null, "src/test/resources/keystore.jks", "changeit", null, null, noSyncIdps);
mcpEventListenerProvider.onEvent(this.mockedEvent);
Expand Down Expand Up @@ -152,7 +154,7 @@ void onEvent() {
given(this.mockedUserModel.getAttributes()).willReturn(attrs);

// Put "certificates" in the list of identity_providers that should be skipped.
String[] noSyncIdps = new String[]{ "certificates" };
String[] noSyncIdps = new String[]{"certificates"};

// Create a spy version of the event listener
mcpEventListenerProvider = spy(new MCPEventListenerProvider(mockedKeycloakSession, "", "src/test/resources/keystore.jks", "changeit", null, null, noSyncIdps));
Expand Down

0 comments on commit ea31363

Please sign in to comment.