|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.wewebu.ow.server.ecmimpl.cmis.OwCMISSecurityHandler
public class OwCMISSecurityHandler
WSS handler for CMIS user PasswordText authentication.
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
Field Summary | |
---|---|
protected static Set<QName> |
HEADER_SUPPORT
Set of headers which are supported by this security handler. |
protected static QName |
SECURITY
Security Header |
Fields inherited from interface com.wewebu.ow.server.ecmimpl.cmis.wshandler.OwCMISSecurityHandlerInterface |
---|
PWD, USER, WS_I18N, WS_I18N_PREFIX, WS_SECEXT, WS_SECEXT_PREFIX, WS_SECUTILITY, WS_SECUTILITY_PREFIX, WS_USER_TOKEN_PROFILE |
Constructor Summary | |
---|---|
OwCMISSecurityHandler(String username_p,
String password_p)
Create a handler with UTC time zone settings, without any locale information. |
|
OwCMISSecurityHandler(String username_p,
String password_p,
Locale locale_p,
TimeZone wssi18nTimeZone_p,
TimeZone wssecTimeZone_p)
New Constructor to define directly the parameter of the security handler. |
Method Summary | |
---|---|
void |
close(MessageContext context_p)
|
protected String |
createTimezoneString(TimeZone ctz)
Simple helper to create GMT representation of the client time zone. |
protected void |
createWsi18nHeader(SOAPHeader soapHeader_p)
(overridable) Create an i18n-header if a locale was set for this security handler. |
protected void |
createWssecHeader(SOAPHeader soapHeader_p)
(overridable) Create the depending header structure depending on the implemented security handling. |
Set<QName> |
getHeaders()
|
Locale |
getLocale()
Return the defined Locale which should be used by for the SOAP WS-i18n header. |
String |
getTimezoneString()
Deprecated. |
String |
getWsi18nTimeZone()
Return the Time zone String which should be used in web services header. |
protected TimeZone |
getWsSecTimeZone()
Get the WsSecTimeZone to be used for security header TTL (time to live) definition. |
boolean |
handleFault(SOAPMessageContext context_p)
|
boolean |
handleMessage(SOAPMessageContext messageContext_p)
|
void |
init(Map<String,String> arr_p)
Initial method which is called after instantiation of the Security handler. |
void |
setLocale(Locale locale_p)
Set the Locale which should be provided for WS-i18n localization. |
void |
setTimezoneString(String timeZone_p)
Deprecated. |
void |
setWsi18nTimeZone(String timeZone_p)
Set the String which should represent the value of the time zone web service header. |
void |
setWsi18nTimeZone(TimeZone timeZone_p)
Transform the provided Timezone into a string which should be used for WSI communication with CMIS system. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final QName SECURITY
protected static final Set<QName> HEADER_SUPPORT
Constructor Detail |
---|
public OwCMISSecurityHandler(String username_p, String password_p, Locale locale_p, TimeZone wssi18nTimeZone_p, TimeZone wssecTimeZone_p)
username_p
- Stringpassword_p
- Stringlocale_p
- Locale can be nullwssi18nTimeZone_p
- TimeZone can be nullwssecTimeZone_p
- TimeZone if null will be set to UTCpublic OwCMISSecurityHandler(String username_p, String password_p)
username_p
- Stringpassword_p
- StringMethod Detail |
---|
public boolean handleMessage(SOAPMessageContext messageContext_p)
handleMessage
in interface Handler<SOAPMessageContext>
public Set<QName> getHeaders()
getHeaders
in interface SOAPHandler<SOAPMessageContext>
public boolean handleFault(SOAPMessageContext context_p)
handleFault
in interface Handler<SOAPMessageContext>
public void close(MessageContext context_p)
close
in interface Handler<SOAPMessageContext>
public void setLocale(Locale locale_p)
OwCMISSecurityHandlerInterface
setLocale
in interface OwCMISSecurityHandlerInterface
locale_p
- Locale to be used, or nullpublic Locale getLocale()
OwCMISSecurityHandlerInterface
getLocale
in interface OwCMISSecurityHandlerInterface
public void setWsi18nTimeZone(TimeZone timeZone_p)
OwCMISSecurityHandlerInterface
setWsi18nTimeZone
in interface OwCMISSecurityHandlerInterface
timeZone_p
- TimeZone can be null.OwCMISSecurityHandlerInterface.setWsi18nTimeZone(String)
protected String createTimezoneString(TimeZone ctz)
public void init(Map<String,String> arr_p)
OwCMISSecurityHandlerInterface
init
in interface OwCMISSecurityHandlerInterface
arr_p
- Map Strings header to value mappingprotected void createWssecHeader(SOAPHeader soapHeader_p) throws SOAPException, DatatypeConfigurationException
soapHeader_p
- SOAPHeader to attach to
SOAPException
- if problems with creation of the attaching new child elements
DatatypeConfigurationException
- if could not create DatatypeFactory for XMLGregorianCalendarprotected void createWsi18nHeader(SOAPHeader soapHeader_p) throws SOAPException
soapHeader_p
- SOAPHeader where to attach the new i18n-elements
SOAPException
- if problem occurs during attaching/creating header element@Deprecated public void setTimezoneString(String timeZone_p)
OwCMISSecurityHandlerInterface
deprecated since 4.0.0.0 use OwCMISSecurityHandlerInterface.setWsi18nTimeZone(TimeZone)
or OwCMISSecurityHandlerInterface.setWsi18nTimeZone(String)
instead
setTimezoneString
in interface OwCMISSecurityHandlerInterface
timeZone_p
- String can be null.@Deprecated public String getTimezoneString()
OwCMISSecurityHandlerInterface
getTimezoneString
in interface OwCMISSecurityHandlerInterface
public void setWsi18nTimeZone(String timeZone_p)
OwCMISSecurityHandlerInterface
setWsi18nTimeZone
in interface OwCMISSecurityHandlerInterface
timeZone_p
- String can be null.public String getWsi18nTimeZone()
OwCMISSecurityHandlerInterface
getWsi18nTimeZone
in interface OwCMISSecurityHandlerInterface
protected TimeZone getWsSecTimeZone()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |