jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r828696 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authentication/AbstractLoginModule.java
Date Thu, 22 Oct 2009 13:55:01 GMT
Author: angela
Date: Thu Oct 22 13:55:01 2009
New Revision: 828696

URL: http://svn.apache.org/viewvc?rev=828696&view=rev
Log:
- fix broken javadoc links
- generics (parameterize sets of principals, credentials)

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authentication/AbstractLoginModule.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authentication/AbstractLoginModule.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authentication/AbstractLoginModule.java?rev=828696&r1=828695&r2=828696&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authentication/AbstractLoginModule.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authentication/AbstractLoginModule.java
Thu Oct 22 13:55:01 2009
@@ -86,7 +86,7 @@
      * credentials should be taken as is and the user requesting access
      * has already been authenticated outside of this LoginModule.
      *
-     * @see #getTrustedCredentialsAttributeName()
+     * @see #getPreAuthAttributeName()
      */
     private String preAuthAttributeName;
 
@@ -410,8 +410,8 @@
      * @see javax.security.auth.spi.LoginModule#logout()
      */
     public boolean logout() throws LoginException {
-        Set thisPrincipals = subject.getPrincipals();
-        Set thisCredentials = subject.getPublicCredentials(SimpleCredentials.class);
+        Set<Principal> thisPrincipals = subject.getPrincipals();
+        Set<SimpleCredentials> thisCredentials = subject.getPublicCredentials(SimpleCredentials.class);
         if (thisPrincipals == null || thisCredentials == null
                 || thisPrincipals.isEmpty() || thisCredentials.isEmpty()) {
             return false;
@@ -758,7 +758,7 @@
      * <p>
      * This base class implementation returns <code>true</code> if the
      * <code>creds</code> object is a SimpleCredentials instance and the
-     * configured {@link #getTrustedCredentialsAttributeName() trusted
+     * configured {@link #getPreAuthAttributeName() trusted
      * credentials property} is set to a non-<code>null</code> value in the
      * credentials attributes.
      * <p>



Mime
View raw message