X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.db.common%2Fsrc%2Forg%2Fsimantics%2Fdb%2Fcommon%2Fauth%2FUserAuthenticationAgents.java;h=7c900da74eb2e926910e8405c4e42e76c3ee1d1a;hb=6259de5991b9c11f6d46807d88f51830473adb13;hp=8c4a408a1c68cac8f78b091c8ca18eedced82b37;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.db.common/src/org/simantics/db/common/auth/UserAuthenticationAgents.java b/bundles/org.simantics.db.common/src/org/simantics/db/common/auth/UserAuthenticationAgents.java index 8c4a408a1..7c900da74 100644 --- a/bundles/org.simantics.db.common/src/org/simantics/db/common/auth/UserAuthenticationAgents.java +++ b/bundles/org.simantics.db.common/src/org/simantics/db/common/auth/UserAuthenticationAgents.java @@ -1,39 +1,39 @@ -/******************************************************************************* - * Copyright (c) 2007, 2010 Association for Decentralized Information Management - * in Industry THTH ry. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * VTT Technical Research Centre of Finland - initial API and implementation - *******************************************************************************/ -package org.simantics.db.common.auth; - -import org.simantics.db.authentication.UserAuthenticationAgent; -import org.simantics.db.authentication.UserAuthenticator; -import org.simantics.db.service.ServerInformation; - -public class UserAuthenticationAgents { - - private static class Static implements UserAuthenticationAgent { - - private final UserAuthenticator auth; - - public Static(UserAuthenticator auth) { - this.auth = auth; - } - - @Override - public UserAuthenticator getAuthenticator(ServerInformation information) { - return auth; - } - - } - - public static UserAuthenticationAgent staticAgent(UserAuthenticator auth) { - return new Static(auth); - } - +/******************************************************************************* + * Copyright (c) 2007, 2010 Association for Decentralized Information Management + * in Industry THTH ry. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * VTT Technical Research Centre of Finland - initial API and implementation + *******************************************************************************/ +package org.simantics.db.common.auth; + +import org.simantics.db.authentication.UserAuthenticationAgent; +import org.simantics.db.authentication.UserAuthenticator; +import org.simantics.db.service.ServerInformation; + +public class UserAuthenticationAgents { + + private static class Static implements UserAuthenticationAgent { + + private final UserAuthenticator auth; + + public Static(UserAuthenticator auth) { + this.auth = auth; + } + + @Override + public UserAuthenticator getAuthenticator(ServerInformation information) { + return auth; + } + + } + + public static UserAuthenticationAgent staticAgent(UserAuthenticator auth) { + return new Static(auth); + } + } \ No newline at end of file