geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject cvs commit: incubator-geronimo/modules/connector/src/java/org/apache/geronimo/connector/outbound/security PasswordCredentialRealm.java
Date Tue, 17 Feb 2004 00:09:19 GMT
adc         2004/02/16 16:09:19

  Modified:    modules/connector/src/java/org/apache/geronimo/connector/outbound/security
                        PasswordCredentialRealm.java
  Log:
  Remote server logins.
  
  Revision  Changes    Path
  1.3       +11 -15    incubator-geronimo/modules/connector/src/java/org/apache/geronimo/connector/outbound/security/PasswordCredentialRealm.java
  
  Index: PasswordCredentialRealm.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/connector/src/java/org/apache/geronimo/connector/outbound/security/PasswordCredentialRealm.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- PasswordCredentialRealm.java	23 Jan 2004 06:47:05 -0000	1.2
  +++ PasswordCredentialRealm.java	17 Feb 2004 00:09:19 -0000	1.3
  @@ -75,25 +75,14 @@
    * @version $Revision$ $Date$
    *
    * */
  -public class PasswordCredentialRealm implements SecurityRealm, ManagedConnectionFactoryListener
{
  +public class PasswordCredentialRealm extends AbstractSecurityRealm implements SecurityRealm,
ManagedConnectionFactoryListener {
   
       private static final GBeanInfo GBEAN_INFO;
   
  -    private String realmName;
  -
       ManagedConnectionFactory managedConnectionFactory;
   
       static final String REALM_INSTANCE = "org.apache.connector.outbound.security.PasswordCredentialRealm";
   
  -
  -    public void setRealmName(String realmName) {
  -        this.realmName = realmName;
  -    }
  -
  -    public String getRealmName() {
  -        return realmName;
  -    }
  -
       public Set getGroupPrincipals() throws GeronimoSecurityException {
           return null;
       }
  @@ -113,13 +102,20 @@
       public void refresh() throws GeronimoSecurityException {
       }
   
  -    public AppConfigurationEntry[] getAppConfigurationEntry() {
  +    public AppConfigurationEntry getAppConfigurationEntry() {
           Map options = new HashMap();
  +
  +        // TODO: This can be a bad thing, passing a reference to a realm to the login module
  +        // since the SerializableACE can be sent remotely
           options.put(REALM_INSTANCE, this);
           AppConfigurationEntry appConfigurationEntry = new AppConfigurationEntry(PasswordCredentialLoginModule.class.getName(),
                   AppConfigurationEntry.LoginModuleControlFlag.REQUISITE,
                   options);
  -        return new AppConfigurationEntry[]{appConfigurationEntry};
  +        return appConfigurationEntry;
  +    }
  +
  +    public boolean isLoginModuleLocal() {
  +        return true;
       }
   
       public void setManagedConnectionFactory(ManagedConnectionFactory managedConnectionFactory)
{
  
  
  

Mime
View raw message