Interface STSRequest
- All Superinterfaces:
com.tivoli.am.fim.trustserver.sts.STSPrefixResolver,com.tivoli.am.fim.trustserver.sts.STSReqResp
public interface STSRequest
extends com.tivoli.am.fim.trustserver.sts.STSReqResp
The
STSRequest object encapsulates information specific to the current request
including data from the requestor via the RequestSecurityToken.
In addition, this object provides:
- module to module communication via the various attribute methods.
- access to the
STSSessionobject which can be used to cache/store objects (like nonces) across multiple requests. - access to services such as the kess service and alias service.
- access to partner/endpoint parameters that are specific to this request.
- Version:
- @VERSION@
-
Field Summary
FieldsFields inherited from interface com.tivoli.am.fim.trustserver.sts.STSPrefixResolver
STSPrefixResolver_java_copyright, STSPrefixResolver_java_sourceCodeID -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(String name) Returns the value of the named attribute as an Object, or null if no attribute of the given name exists.Returns ajava.util.Iteratorcontaining the names of the attributes available to this request.Get the Audit trail ID This ID should be used on all audit related logging so that audit records for a request may be correlated across different logging destinations and sources.com.tivoli.am.fim.trustserver.sts.STSGroupMembershipGet the instance of the group membership appropriate for the current request to use as configuration to fulfill the request.Returns the WS-Trust RequestSecurityToken as acom.tivoli.am.fim.trustserver.types.RequestSecurityTokenobject.getServiceHandle(String serviceId) Returns a Service handle that belongs to the servideId specified.Returns the SOAP envelop as aorg.w3c.dom.Elementsent in the client's request, if any.com.tivoli.am.fim.trustserver.sts.STSSessionReturns a session object to add attribute values that are maintained across multiple requests.Returns the WS-Trust message as aorg.w3c.dom.Elementsent in the client's request, if any.voidsetAttribute(String name, Object value) Stores an attribute in this request.Methods inherited from interface com.tivoli.am.fim.trustserver.sts.STSPrefixResolver
addNamespaceMapping, createQName, getNamespacePrefix, getNamespacePrefixes, getNamespaceURI, getNamespaceURIs
-
Field Details
-
STSRequest_java_sourceCodeID
- See Also:
-
STSRequest_java_copyright
- See Also:
-
-
Method Details
-
getSTSSession
com.tivoli.am.fim.trustserver.sts.STSSession getSTSSession()Returns a session object to add attribute values that are maintained across multiple requests.- Returns:
- a
STSSessionobject
-
getSOAPEnvelope
Element getSOAPEnvelope()Returns the SOAP envelop as aorg.w3c.dom.Elementsent in the client's request, if any. This method exposes a leaky abstraction, and may not be available if the request was not sent via SOAP. It is recommended that this method be used only if it can be guaranteed that the request will be sent via SOAP.- Returns:
- a
org.w3c.dom.Elementof the SOAP envelope that was sent in the client's request or null.
-
getWsTrustMsg
Element getWsTrustMsg()Returns the WS-Trust message as aorg.w3c.dom.Elementsent in the client's request, if any. It must be the original unchanged DOM element. This method exposes a leaky abstraction, and may not be available if the request was not sent via SOAP. It is recommended that this method be used only if it can be guaranteed that the request will be sent via SOAP.- Returns:
- a
org.w3c.dom.Elementof the SOAP envelope that was sent in the client's request or null.
-
getRequestSecurityToken
RequestSecurityToken getRequestSecurityToken()Returns the WS-Trust RequestSecurityToken as acom.tivoli.am.fim.trustserver.types.RequestSecurityTokenobject.- Returns:
- The
RequestSecurityTokenincluded with the request.
-
getAttribute
Returns the value of the named attribute as an Object, or null if no attribute of the given name exists.- Parameters:
name- a String specifying the name of the attribute.- Returns:
- an Object containing the value of the attribute, or null if the attribute does not exist.
-
getAttributeNames
Iterator getAttributeNames()Returns ajava.util.Iteratorcontaining the names of the attributes available to this request. This method returns an emptyjava.util.Iteratorif the request has no attributes available to it.- Returns:
- a
java.util.Interatorof strings containing the names of the request's attributes.
-
setAttribute
Stores an attribute in this request. Attributes are reset between requests.- Parameters:
name- a String specifying the name of the attribute.value- the object to be stored.
-
getServiceHandle
Returns a Service handle that belongs to the servideId specified.- Parameters:
serviceId- the name of the service to obtain.
-
getRequestGroupMembership
com.tivoli.am.fim.trustserver.sts.STSGroupMembership getRequestGroupMembership()Get the instance of the group membership appropriate for the current request to use as configuration to fulfill the request. This method should be used to retrieve configuration parameters and endpoint/partner policy.- Returns:
- An STSGroupMembership object.
-
getAuditTrailID
String getAuditTrailID()Get the Audit trail ID This ID should be used on all audit related logging so that audit records for a request may be correlated across different logging destinations and sources.
-