ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [1/2] incubator-ignite git commit: #gg-9809: GridOsSecurityProcessor returns null instead of throwing UnsupportedOperationException.
Date Wed, 18 Feb 2015 15:12:53 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-gg-9809 e1a7c8c89 -> 79e40989d


#gg-9809: GridOsSecurityProcessor returns null instead of throwing UnsupportedOperationException.


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/e6cf2193
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/e6cf2193
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/e6cf2193

Branch: refs/heads/ignite-gg-9809
Commit: e6cf2193b9ea60eabef8800c3136a4d7290a9458
Parents: a7cf457
Author: ivasilinets <ivasilinets@gridgain.com>
Authored: Wed Feb 18 18:12:07 2015 +0300
Committer: ivasilinets <ivasilinets@gridgain.com>
Committed: Wed Feb 18 18:12:07 2015 +0300

----------------------------------------------------------------------
 .../processors/security/GridSecurityProcessor.java     |  8 --------
 .../security/os/GridOsSecurityProcessor.java           | 13 ++++---------
 2 files changed, 4 insertions(+), 17 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/e6cf2193/modules/core/src/main/java/org/apache/ignite/internal/processors/security/GridSecurityProcessor.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/security/GridSecurityProcessor.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/security/GridSecurityProcessor.java
index d886154..1ff16bb 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/security/GridSecurityProcessor.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/security/GridSecurityProcessor.java
@@ -84,14 +84,6 @@ public interface GridSecurityProcessor extends GridProcessor {
         throws GridSecurityException;
 
     /**
-     * Create security context.
-     *
-     * @subj Security subject.
-     * @return Security context.
-     */
-    public SecurityContext createSecurityContext(GridSecuritySubject subj);
-
-    /**
      * Callback invoked when subject session got expired.
      *
      * @param subjId Subject ID.

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/e6cf2193/modules/core/src/main/java/org/apache/ignite/internal/processors/security/os/GridOsSecurityProcessor.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/security/os/GridOsSecurityProcessor.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/security/os/GridOsSecurityProcessor.java
index 4a8c53b..3e4a937 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/security/os/GridOsSecurityProcessor.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/security/os/GridOsSecurityProcessor.java
@@ -41,22 +41,22 @@ public class GridOsSecurityProcessor extends GridProcessorAdapter implements
Gri
     /** {@inheritDoc} */
     @Override public SecurityContext authenticateNode(ClusterNode node, GridSecurityCredentials
cred)
         throws IgniteCheckedException {
-        throw new UnsupportedOperationException("GridOsSecurityProcessor.authenticateNode()");
+        return null;
     }
 
     /** {@inheritDoc} */
     @Override public boolean isGlobalNodeAuthentication() {
-        throw new UnsupportedOperationException("GridOsSecurityProcessor.isGlobalNodeAuthentication()");
+        return false;
     }
 
     /** {@inheritDoc} */
     @Override public SecurityContext authenticate(AuthenticationContext authCtx) throws IgniteCheckedException
{
-        throw new UnsupportedOperationException("GridOsSecurityProcessor.authenticate()");
+        return null;
     }
 
     /** {@inheritDoc} */
     @Override public Collection<GridSecuritySubject> authenticatedSubjects() {
-        throw new UnsupportedOperationException("GridOsSecurityProcessor.authenticatedSubjects()");
+        return Collections.emptyList();
     }
 
     /** {@inheritDoc} */
@@ -71,11 +71,6 @@ public class GridOsSecurityProcessor extends GridProcessorAdapter implements
Gri
     }
 
     /** {@inheritDoc} */
-    @Override public SecurityContext createSecurityContext(GridSecuritySubject subj) {
-        throw new UnsupportedOperationException("GridOsSecurityProcessor.createSecurityContext()");
-    }
-
-    /** {@inheritDoc} */
     @Override public void onSessionExpired(UUID subjId) {
         // No-op.
     }


Mime
View raw message