Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* information: "Portions copyright [year] [name of copyright owner]".
*
* Copyright 2015 ForgeRock AS.
* Portions Copyrighted 2026 3A Systems, LLC
*/

package org.forgerock.bloomfilter;
Expand Down Expand Up @@ -297,6 +298,7 @@ public RollingBloomFilterBuilder(final BloomFilterBuilder<T> toCopy) {
}

@VisibleForTesting
@Override
RollingBloomFilterBuilder<T> withClock(final TimeService clock) {
Reject.ifNull(clock);
this.clock = clock;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
*
* Copyright 2008 Sun Microsystems, Inc.
* Portions copyright 2011-2012 ForgeRock AS
* Portions Copyrighted 2026 3A Systems, LLC
*/
package org.forgerock.testng;

Expand Down Expand Up @@ -302,6 +303,7 @@ public ForgeRockTestListener() {
initializeProgressVars();
}

@Override
public void generateReport(final List<XmlSuite> xmlSuites, final List<ISuite> suites,
final String outputDirectory) {
final File reportFile = new File(outputDirectory, REPORT_FILE_NAME);
Expand All @@ -310,6 +312,7 @@ public void generateReport(final List<XmlSuite> xmlSuites, final List<ISuite> su
writeAntTestsFailedMarker(outputDirectory);
}

@Override
public void onConfigurationFailure(final ITestResult tr) {
super.onConfigurationFailure(tr);

Expand All @@ -331,18 +334,21 @@ public void onConfigurationFailure(final ITestResult tr) {
_bufferedTestFailures.append(failureInfo);
}

@Override
public void onStart(final ITestContext testContext) {
super.onStart(testContext);

// Delete the previous report if it's there.
new File(testContext.getOutputDirectory(), REPORT_FILE_NAME).delete();
}

@Override
public void onTestFailedButWithinSuccessPercentage(final ITestResult tr) {
super.onTestFailedButWithinSuccessPercentage(tr);
onTestFinished(tr);
}

@Override
public void onTestFailure(final ITestResult tr) {
super.onTestFailure(tr);

Expand Down Expand Up @@ -378,18 +384,21 @@ public void onTestFailure(final ITestResult tr) {
onTestFinished(tr);
}

@Override
public void onTestSkipped(final ITestResult tr) {
super.onTestSkipped(tr);
onTestFinished(tr);
}

@Override
public void onTestStart(final ITestResult tr) {
super.onTestStart(tr);
enforceTestClassTypeAndAnnotations(tr);
checkForInterleavedBetweenClasses(tr);
enforceMethodHasAnnotation(tr);
}

@Override
public void onTestSuccess(final ITestResult tr) {
super.onTestSuccess(tr);
onTestFinished(tr);
Expand Down Expand Up @@ -584,6 +593,7 @@ private List<TestClassResults> getClassesDescendingSortedByDuration() {
final List<TestClassResults> allClasses = new ArrayList<TestClassResults>(
_classResults.values());
Collections.sort(allClasses, new Comparator<TestClassResults>() {
@Override
public int compare(final TestClassResults o1, final TestClassResults o2) {
if (o1._totalDurationMs > o2._totalDurationMs) {
return -1;
Expand All @@ -607,6 +617,7 @@ private String getFqMethod(final ITestResult result) {
private List<TestMethodResults> getMethodsDescendingSortedByDuration() {
final List<TestMethodResults> allMethods = getAllMethodResults();
Collections.sort(allMethods, new Comparator<TestMethodResults>() {
@Override
public int compare(final TestMethodResults o1, final TestMethodResults o2) {
if (o1._totalDurationMs > o2._totalDurationMs) {
return -1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* information: "Portions copyright [year] [name of copyright owner]".
*
* Copyright 2019 Open Identity Platform Community.
* Portions Copyrighted 2026 3A Systems, LLC
*/

package org.openidentityplatform.commons.cassandra;
Expand Down Expand Up @@ -46,6 +47,7 @@ public class EmbeddedServer implements Runnable, AutoCloseable {
final private ExecutorService executor = Executors.newSingleThreadExecutor();
private CassandraDaemon cassandraDaemon;

@Override
public void run() {
try {
//check for external cassandra settings
Expand Down Expand Up @@ -138,6 +140,7 @@ public void run() {
}
}

@Override
public void close() {
if (cassandraDaemon!=null) {
cassandraDaemon.stop();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* information: "Portions copyright [year] [name of copyright owner]".
*
* Copyright 2015 ForgeRock AS.
* Portions Copyrighted 2026 3A Systems, LLC
*/
package org.forgerock.audit.handlers.csv;

Expand Down Expand Up @@ -47,5 +48,6 @@ interface CsvWriter extends AutoCloseable {
*/
void flush() throws IOException;

@Override
void close() throws IOException;
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* information: "Portions copyright [year] [name of copyright owner]".
*
* Copyright 2015-2016 ForgeRock AS.
* Portions Copyrighted 2026 3A Systems, LLC
*/
package org.forgerock.audit.handlers.csv;

Expand Down Expand Up @@ -134,6 +135,7 @@ public void writeEvent(Map<String, String> values) throws IOException {
* Flush the data into the CSV file.
* @throws IOException
*/
@Override
public void flush() throws IOException {
csvWriter.flush();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
*
* Copyright 2015-2016 ForgeRock AS.
* Portions Copyright 2016 Nomura Research Institute, Ltd.
* Portions Copyrighted 2026 3A Systems, LLC
*/
package org.forgerock.audit.handlers.jdbc;

Expand Down Expand Up @@ -87,6 +88,7 @@ public BufferedJdbcAuditEventExecutor(int capacity, boolean autoFlush, JdbcAudit
this.maxBatchedEvents = maxBatchedEvents;
}

@Override
public void flush() {
try {
while (!queue.isEmpty()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ public void shutdown() throws ResourceException {
* @param auditEvent The event to convert to a JMS TextMessage and publish on the JMS Topic.
* @return a promise with either a response or an exception
*/
@Override
public Promise<ResourceResponse, ResourceException> publishEvent(Context context, String auditTopic,
JsonValue auditEvent) {
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* information: "Portions copyright [year] [name of copyright owner]".
*
* Copyright 2016 ForgeRock AS.
* Portions copyright 2024 3A Systems LLC.
* Portions copyright 2024-2026 3A Systems LLC.
*/

package org.forgerock.audit.handlers.jms;
Expand Down Expand Up @@ -67,6 +67,7 @@ class JndiJmsContextManager implements JmsContextManager {
* @return The {@link Topic JMS topic} to use for JMS publish/subscribe functionality.
* @throws InternalServerErrorException If unable to retrieve the {@link Topic JMS topic}.
*/
@Override
public Topic getTopic() throws InternalServerErrorException {
try {
if (topic == null) {
Expand All @@ -83,6 +84,7 @@ public Topic getTopic() throws InternalServerErrorException {
* @return the {@link ConnectionFactory JMS connection factory} to use to connect to JMS services.
* @throws InternalServerErrorException If unable to retrieve the {@link ConnectionFactory JMS connection factory}.
*/
@Override
public ConnectionFactory getConnectionFactory() throws InternalServerErrorException {
try {
if (connectionFactory == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
*
* Copyright 2013 Cybernetica AS
* Portions copyright 2014-2015 ForgeRock AS.
* Portions Copyrighted 2026 3A Systems, LLC
*/
package org.forgerock.audit.handlers.syslog;

Expand All @@ -29,5 +30,6 @@ interface SyslogConnection extends AutoCloseable {

void flush() throws IOException;

@Override
void close();
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
*
* Copyright 2013 Cybernetica AS
* Portions copyright 2014-2015 ForgeRock AS.
* Portions Copyrighted 2026 3A Systems, LLC
*/
package org.forgerock.audit.handlers.syslog;

Expand All @@ -35,5 +36,6 @@ interface SyslogPublisher extends AutoCloseable {
/**
* Closes the underlying connection.
*/
@Override
void close();
}
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ public Promise<AuthStatus, AuthenticationException> validateRequest(MessageInfoC
LOG.debug("IWAModule: IWA successful with username, {}", username);

clientSubject.getPrincipals().add(new Principal() {
@Override
public String getName() {
return username;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
* $Id: WindowsDesktopSSO.java,v 1.7 2009/07/28 19:40:45 beomsuk Exp $
*
* Portions Copyrighted 2011-2016 ForgeRock AS.
* Portions Copyrighted 2026 3A Systems, LLC
*/

package org.forgerock.jaspi.modules.iwa.wdsso;
Expand Down Expand Up @@ -173,6 +174,7 @@ public String process(Map<String, String> options, Context context, Request requ

private void authenticateToken(final byte[] kerberosToken) throws Exception {
Subject.doAs(serviceSubject, new PrivilegedExceptionAction() {
@Override
public Object run() throws Exception {
GSSContext context = GSSManager.getInstance().createContext((GSSCredential) null);
LOG.debug("IWA WDSSO: GSSContext created");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
* $Id: WindowsDesktopSSOConfig.java,v 1.3 2009/04/07 22:55:13 beomsuk Exp $
*
* Portions Copyrighted 2013-2016 ForgeRock AS.
* Portions Copyrighted 2026 3A Systems, LLC
*/


Expand Down Expand Up @@ -96,6 +97,7 @@ public void setRefreshConfig(String refresh) {
* @param appName The app name.
* @return Array of AppConfigurationEntry
*/
@Override
public AppConfigurationEntry[] getAppConfigurationEntry(String appName) {
if (appName.equals(DEFAULT_APP_NAME)) {
Map<String, String> hashmap = new HashMap<>();
Expand Down Expand Up @@ -125,6 +127,7 @@ public AppConfigurationEntry[] getAppConfigurationEntry(String appName) {
/**
* Do a config refresh.
*/
@Override
public void refresh() {
config.refresh();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* information: "Portions copyright [year] [name of copyright owner]".
*
* Copyright 2015-2016 ForgeRock AS.
* Portions copyright 2024 3A Systems LLC.
* Portions copyright 2024-2026 3A Systems LLC.
*/

package org.forgerock.jaspi.modules.session.jwt;
Expand Down Expand Up @@ -92,6 +92,7 @@ public Jwt validateJwtSessionCookie(MessageInfo messageInfo) {
* @param messageInfo The message info.
* @return The cookie, or null.
*/
@Override
public Cookie findJwtSessionCookie(MessageInfo messageInfo) {
HttpServletRequest request = (HttpServletRequest) messageInfo.getRequestMessage();
Set<Cookie> cookies = getCookies(request);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* information: "Portions copyright [year] [name of copyright owner]".
*
* Copyright 2014-2015 ForgeRock AS.
* Portions Copyrighted 2026 3A Systems, LLC
*/

package org.forgerock.jaspi.modules.openid.resolvers.service;
Expand Down Expand Up @@ -46,6 +47,7 @@ public class OpenIdResolverServiceConfiguratorImpl implements OpenIdResolverServ
* @param resolvers the configuration
* @return false if any resolver configuration fails true otherwise
*/
@Override
public boolean configureService(final OpenIdResolverService service, final List<Map<String, String>> resolvers) {

if (resolvers == null || resolvers.size() < 1) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* information: "Portions copyright [year] [name of copyright owner]".
*
* Copyright 2014-2016 ForgeRock AS.
* Portions Copyrighted 2026 3A Systems, LLC
*/

package org.forgerock.jaspi.modules.openid.resolvers.service;
Expand Down Expand Up @@ -85,6 +86,7 @@ public OpenIdResolverServiceImpl(final int readTimeout, final int connTimeout) {
* @param issuer The name of the issuer of the Open Id Connect token to check
* @return A resolver which can handle verification of the Open Id Connect token
*/
@Override
public OpenIdResolver getResolverForIssuer(final String issuer) {
return openIdResolvers.get(issuer);
}
Expand All @@ -100,6 +102,7 @@ public OpenIdResolver getResolverForIssuer(final String issuer) {
* @param keystorePassword password to enter the keystore
* @return true if the resolver was configured successfully, false otherwise
*/
@Override
public boolean configureResolverWithKey(final String issuer,
final String keyAlias, final String keystoreLocation,
final String keystoreType, final String keystorePassword) {
Expand Down Expand Up @@ -138,6 +141,7 @@ public boolean configureResolverWithKey(final String issuer,
* @param sharedSecret The known-to-both-parties secret String
* @return true if the resolver was configured successfully, false otherwise
*/
@Override
public boolean configureResolverWithSecret(final String issuer, final String sharedSecret) {

try {
Expand All @@ -158,6 +162,7 @@ public boolean configureResolverWithSecret(final String issuer, final String sha
* @param jwkUrl location from which to determine which public key to use
* @return true if the resolver was configured successfully, false otherwise
*/
@Override
public boolean configureResolverWithJWK(final String issuer,
final URL jwkUrl) {

Expand All @@ -180,6 +185,7 @@ public boolean configureResolverWithJWK(final String issuer,
* @param configUrl location from which to determine which public key to use
* @return true if the resolver was configured successfully, false otherwise
*/
@Override
public boolean configureResolverWithWellKnownOpenIdConfiguration(final URL configUrl) {

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* information: "Portions copyright [year] [name of copyright owner]".
*
* Copyright 2014-2016 ForgeRock AS.
* Portions Copyrighted 2026 3A Systems, LLC
*/

package org.forgerock.caf.authentication.framework;
Expand Down Expand Up @@ -53,6 +54,7 @@ class ResponseHandler {
private static final String QUALITY_PARAMETER = "q";

private static final Comparator<MediaType> ACCEPT_QUALITY_COMPARATOR = new Comparator<MediaType>() {
@Override
public int compare(MediaType o1, MediaType o2) {
int comparison = getQuality(o2).compareTo(getQuality(o1));
if (comparison == 0) {
Expand Down Expand Up @@ -155,6 +157,7 @@ static final class JsonResponseWriter implements ResponseWriter {
MediaType.JSON_UTF_8,
MediaType.JSON_UTF_8.withoutParameters());

@Override
public List<MediaType> handles() {
return MEDIA_TYPES;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ public int hashCode() {
/**
* {@inheritDoc}
*/
@Override
public String toString() {
return "AuthorizationAttribute{key='" + key + "'}";
}
Expand Down
Loading
Loading