com.wewebu.ow.server.ecmimpl.owdummy
Class OwDummyCredentials

java.lang.Object
  extended by com.wewebu.ow.server.ecmimpl.OwAbstractCredentials
      extended by com.wewebu.ow.server.ecmimpl.owdummy.OwDummyCredentials
All Implemented Interfaces:
com.wewebu.ow.server.ecm.OwCredentials

public class OwDummyCredentials
extends com.wewebu.ow.server.ecmimpl.OwAbstractCredentials

Implementation for the user Credentials and Session context for the login to the dummy DMS System.
Created after login to the DMS System. Holds Session information and user authentication information.

Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.

For licensing information read the license.txt file or
go to: http://wiki.alfresco.com


Constructor Summary
OwDummyCredentials(String strUserName_p)
          dummy login - do no authentication
OwDummyCredentials(String userName_p, String password_p, Node authenticationNode_p)
          authenticate against LDAP
 
Method Summary
 String getSecurityToken(com.wewebu.ow.server.ecm.OwResource resource_p)
          get security token used for SSO between different applications accessing the same ECM system
 com.wewebu.ow.server.ecm.OwUserInfo getUserInfo()
          get user information object for the logged in user
 void invalidate()
          close connection, invalid credentials object
 boolean isContainerBasedAuthenticated()
           
 
Methods inherited from class com.wewebu.ow.server.ecmimpl.OwAbstractCredentials
getAuthInfo, setAuthInfo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OwDummyCredentials

public OwDummyCredentials(String userName_p,
                          String password_p,
                          Node authenticationNode_p)
                   throws com.wewebu.ow.server.exceptions.OwAuthenticationException,
                          com.wewebu.ow.server.exceptions.OwConfigurationException,
                          com.wewebu.ow.server.exceptions.OwInvalidOperationException
authenticate against LDAP

Parameters:
userName_p -
password_p -
authenticationNode_p -
Throws:
com.wewebu.ow.server.exceptions.OwAuthenticationException - User login data is not valid
com.wewebu.ow.server.exceptions.OwConfigurationException - possible cause: the LDAP connector is not set up correctly in the bootstrap.xml (Authentication node)
com.wewebu.ow.server.exceptions.OwInvalidOperationException

OwDummyCredentials

public OwDummyCredentials(String strUserName_p)
dummy login - do no authentication

Parameters:
strUserName_p -
Method Detail

getUserInfo

public com.wewebu.ow.server.ecm.OwUserInfo getUserInfo()
                                                throws Exception
get user information object for the logged in user

Throws:
Exception

invalidate

public void invalidate()
                throws Exception
close connection, invalid credentials object

Throws:
Exception

getSecurityToken

public String getSecurityToken(com.wewebu.ow.server.ecm.OwResource resource_p)
get security token used for SSO between different applications accessing the same ECM system

Specified by:
getSecurityToken in interface com.wewebu.ow.server.ecm.OwCredentials
Overrides:
getSecurityToken in class com.wewebu.ow.server.ecmimpl.OwAbstractCredentials
Parameters:
resource_p - OwResource of subsystem or null to use default
Returns:
String a security token that can be used for authentication or an empty String if no token can be generated

isContainerBasedAuthenticated

public boolean isContainerBasedAuthenticated()
                                      throws com.wewebu.ow.server.exceptions.OwException
Specified by:
isContainerBasedAuthenticated in interface com.wewebu.ow.server.ecm.OwCredentials
Overrides:
isContainerBasedAuthenticated in class com.wewebu.ow.server.ecmimpl.OwAbstractCredentials
Throws:
com.wewebu.ow.server.exceptions.OwException


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.