com.wewebu.ow.server.ecmimpl
Class OwAbstractCredentials

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

public abstract class OwAbstractCredentials
extends Object
implements OwCredentials

Abstract implementation of OwCredentials. The method getAuthInfo is implemented based on a map of strings.

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

Since:
4.0.0.0

Constructor Summary
OwAbstractCredentials()
           
OwAbstractCredentials(String user_p)
           
OwAbstractCredentials(String user_p, String password_p)
           
 
Method Summary
 String getAuthInfo(String infoKey_p)
          Return the String which is associated with the requested key.
 String getSecurityToken(OwResource resource_p)
          get security token used for SSO between different applications accessing the same ECM system
 boolean isContainerBasedAuthenticated()
          check the current user is authenticated container based
protected  String setAuthInfo(String key_p, String value_p)
          Define a specific authentication key-value association.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.wewebu.ow.server.ecm.OwCredentials
getUserInfo, invalidate
 

Constructor Detail

OwAbstractCredentials

public OwAbstractCredentials()

OwAbstractCredentials

public OwAbstractCredentials(String user_p)

OwAbstractCredentials

public OwAbstractCredentials(String user_p,
                             String password_p)
Method Detail

getAuthInfo

public String getAuthInfo(String infoKey_p)
Description copied from interface: OwCredentials
Return the String which is associated with the requested key. Can return null if no association is defined for the provided key.

Specified by:
getAuthInfo in interface OwCredentials
Parameters:
infoKey_p - String
Returns:
String or null if no information available
See Also:
OwCredentialsConstants

setAuthInfo

protected String setAuthInfo(String key_p,
                             String value_p)
Define a specific authentication key-value association.

Parameters:
key_p - String key association part
value_p - String value association part
Returns:
String which was previous set for given key, by default null
See Also:
getAuthInfo(String)

getSecurityToken

public String getSecurityToken(OwResource resource_p)
Description copied from interface: OwCredentials
get security token used for SSO between different applications accessing the same ECM system

Specified by:
getSecurityToken in interface OwCredentials
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 OwException
Description copied from interface: OwCredentials
check the current user is authenticated container based

Specified by:
isContainerBasedAuthenticated in interface OwCredentials
Returns:
true if user is logged in and the login is done with container based authentication
Throws:
OwException - if problem occur during investigate of authentication


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.