com.wewebu.ow.server.ecm
Interface OwCredentials

All Known Implementing Classes:
OwAbstractCredentials

public interface OwCredentials

Base interface for the user Credentials and Session context for the login to the ECM System.
Created after login to the ECM System. Holds Session information and user authentication / authorization 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


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
 OwUserInfo getUserInfo()
          get user information object for the logged on user
 void invalidate()
          close connection, invalid credentials object
 boolean isContainerBasedAuthenticated()
          check the current user is authenticated container based
 

Method Detail

getUserInfo

OwUserInfo getUserInfo()
                       throws Exception
get user information object for the logged on user

Returns:
OwUserInfo for current credentials object
Throws:
Exception - if could not retrieve representing OwUserInfo object

invalidate

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

Throws:
Exception - if invalidation creates problems

getSecurityToken

String getSecurityToken(OwResource resource_p)
get security token used for SSO between different applications accessing the same ECM system

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

boolean isContainerBasedAuthenticated()
                                      throws OwException
check the current user is authenticated container based

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

getAuthInfo

String getAuthInfo(String infoKey_p)
Return the String which is associated with the requested key. Can return null if no association is defined for the provided key.

Parameters:
infoKey_p - String
Returns:
String or null if no information available
Since:
4.0.0.0


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.