public abstract class WebSphereBaseTrustAssociationInterceptor
extends java.lang.Object
Constructor and Description |
---|
WebSphereBaseTrustAssociationInterceptor()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
cleanup()
Deprecated.
clean up the TrustAssociation
|
java.lang.String |
getType()
Deprecated.
Get type
|
java.lang.String |
getVersion()
Deprecated.
Get version number.
|
int |
init(java.util.Properties props)
Deprecated.
Initializes the Trust Association Interceptor implementation.
|
int |
init(java.lang.String propsfile)
Deprecated.
If the init(Properties) method mentioned before has been implemented by the
TAI implementation, this method is not required to be implemented.
|
void |
setType(java.lang.String t)
Deprecated.
Set type
|
void |
setVersion(java.lang.String s)
Deprecated.
Set version number.
|
public WebSphereBaseTrustAssociationInterceptor()
public int init(java.util.Properties props)
props
- the properties with which to initialize the
Custom Trust Association Interceptor.This method is called to initialize the Trust Association Interceptor. This needs to be implemented by all the TAI implementations when properties are defined in Trust Association properties.
The default implementation of this method calls the init(String) method with the file name containing the properties file to make this compatible with older versions of Trust Association implementations. If the file name cannot be obtained, a -1 is returned to indicate error. However, it is highly recommended that one implement this method to initialize their Custom Trust Association implementations instead of relying on the default implementation (in which case the init(String) method needs to be implemented).
Also, note that unlike in the previous versions the return status is now checked before using the Trust Association implementation. A return of 0 is considered SUCCESS and anything else a FAILURE. If your previous implementation of the TAI returns a different error status you can either change your implementation to match the expectations or do one of the following.
public int init(java.lang.String propsfile)
If the init(Properties) method mentioned before has been implemented by the TAI implementation, this method is not required to be implemented.
Initializes the Trust Association Interceptor implementation using properties read from a file. This methodwould make the previous Custom TAI implementations to work without any code changes.
propsfile
- the file containing the properties with which
to initialize the Custom Trust Association
Interceptor implementation.This method will be called ONLY when both the following conditions are satisfied.
Note that it is recommended that you change your previous implementation of the TAI(if any) to implement the init(Properties) method so that this method is not called.
If for any reason, one needs to keep using this method instead of the init(Properties) method, you need to keep the following two things in mind.
public abstract void cleanup()
public void setVersion(java.lang.String s)
s
- Version number.public java.lang.String getVersion()
public void setType(java.lang.String t)
t
- typepublic java.lang.String getType()