Package com.ibm.websphere.security.saml2
Class PropagationHelper
- java.lang.Object
-
- com.ibm.websphere.security.saml2.PropagationHelper
-
public class PropagationHelper extends java.lang.Object
Provides methods to return the SAML token from the runAs subject.
-
-
Constructor Summary
Constructors Constructor Description PropagationHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getEncodedSaml20Token(boolean isCompressed)
Returns the encodedSaml20Token
from the runAs subject.static Saml20Token
getSaml20Token()
Returns theSaml20Token
from the runAs subject.
-
-
-
Method Detail
-
getSaml20Token
public static Saml20Token getSaml20Token()
Returns theSaml20Token
from the runAs subject. Applications can use this method to retrieve the Saml20Token (possibly created during the web single sign on process) and then call the down stream REST-ful service by including the token in the HTTP header.- Returns:
Saml20Token
-
getEncodedSaml20Token
public static java.lang.String getEncodedSaml20Token(boolean isCompressed)
Returns the encodedSaml20Token
from the runAs subject. Applications can use this method to retrieve the Saml20Token (possibly created during the web single sign on process) and then call the down stream REST-ful service by including the token in the HTTP header.- Parameters:
isCompressed
- iftrue
, the the token data will be compressed first and then encoded.- Returns:
- encoded saml token
-
-