CredentialProviderpublic class SAMLTrustCredentialProvider extends AbstractSAMLCredentialProvider
| Modifier and Type | Field | Description |
|---|---|---|
protected static ContextHandler |
EMPTY_CONTEXT |
|
private static java.util.logging.Logger |
LOGGER |
|
private static java.lang.String[] |
predEntities |
|
protected static java.lang.String[] |
SAML_VALUE_TYPES |
|
private SAMLCredential |
samlCredential |
|
private static java.lang.String[] |
specialChars |
| Constructor | Description |
|---|---|
SAMLTrustCredentialProvider() |
| Modifier and Type | Method | Description |
|---|---|---|
static SAMLCredential |
createCredential(weblogic.wsee.security.wst.framework.TrustSoapClient soapClient,
weblogic.wsee.security.wst.framework.WSTContext wstCtx,
SecurityTokenHandler tokh,
java.lang.String tokenType) |
|
private static java.lang.String |
decodeSamlXml(java.lang.String s) |
|
private static weblogic.wsee.security.wst.binding.BinarySecret |
getBinarySecret(weblogic.wsee.security.wst.binding.RequestSecurityTokenResponse rstr) |
|
java.lang.Object |
getCredential(java.lang.String tokenType,
java.lang.String issuerName,
ContextHandler ctxHandler,
Purpose p) |
if CredentialManager is not configured, just return the credential object
otherwise retrieve the saml credential from the CredentialManager
|
private static SAMLCredential |
getCredentialFromRSTR(weblogic.wsee.security.wst.framework.WSTContext wstCtx,
weblogic.wsee.security.wst.binding.RequestSecurityTokenResponse rstr,
java.lang.String tokenType) |
|
private java.lang.Object |
getCredentialLocalCSS(java.lang.String tokenType,
java.lang.String issuerName,
ContextHandler ctxHandler,
Purpose p) |
|
private SAMLCredential |
getCredentialSTSCSS(java.lang.String tokenType,
ContextHandler ctxHandler) |
|
(package private) static SAMLCredential |
getFromContext(javax.xml.rpc.handler.MessageContext msgCtx) |
|
private java.lang.String |
getIssueAction(java.lang.String trustVersion) |
|
protected static javax.xml.rpc.handler.MessageContext |
getMessageContext(SecurityTokenContextHandler securityCtxHandler) |
|
private SecurityToken |
getSamlSecurityToken(java.lang.String samlString) |
|
protected static SecurityTokenContextHandler |
getSecurityCtxHandler(ContextHandler ctxHandler) |
|
private static java.security.Key |
getSymmetricKeyFromRstr(weblogic.wsee.security.wst.binding.RequestSecurityTokenResponse rstr,
weblogic.wsee.security.wst.framework.WSTContext wstCtx) |
|
java.lang.String[] |
getValueTypes() |
Return token types supported by cred providers extending this class.
|
private void |
initPolicy(SecurityTokenContextHandler securityCtxHandler,
weblogic.wsee.security.wst.framework.WSTContext wstCtx,
javax.xml.rpc.handler.MessageContext msgCtx) |
|
private void |
intWSTContext(java.lang.String tokenType,
weblogic.wsee.security.wst.framework.WSTContext wstCtx,
javax.xml.rpc.handler.MessageContext msgCtx,
SecurityTokenContextHandler securityCtxHandler) |
|
private void |
intWSTContext(java.lang.String tokenType,
weblogic.wsee.security.wst.framework.WSTContext wstCtx,
javax.xml.rpc.handler.MessageContext msgCtx,
SecurityTokenContextHandler securityCtxHandler,
org.w3c.dom.Element issuedTokenElement) |
|
private static boolean |
isSamlTokenString(java.lang.String inString) |
|
private static boolean |
isSamlValueType(java.lang.String type) |
|
private java.lang.Object |
setActAsLocalSAMLToken(java.lang.String tokenType,
java.lang.String issuerName,
ContextHandler ctxHandler,
Purpose p) |
Set Local SAML Token into the new ActAs element in WS-Trust 1.4
|
private java.lang.Object |
setActAsToken(weblogic.wsee.security.wst.framework.WSTContext wstCtx,
javax.xml.rpc.handler.MessageContext msgCtx) |
Set SAML Token into the new ActAs element in WS-Trust 1.4
|
private void |
setOnBehalfOfLocalSAMLToken(java.lang.String tokenType,
java.lang.String issuerName,
ContextHandler ctxHandler,
Purpose p) |
|
private void |
setOnBehalfOfToken(weblogic.wsee.security.wst.framework.WSTContext wstCtx,
javax.xml.rpc.handler.MessageContext msgCtx) |
|
(package private) static void |
setToContext(javax.xml.rpc.handler.MessageContext msgCtx,
SAMLCredential sc) |
getKeyInfoCredential, getKeyInfoCredential, getSAMLAttributeDataprivate static final java.util.logging.Logger LOGGER
protected static final ContextHandler EMPTY_CONTEXT
private SAMLCredential samlCredential
protected static final java.lang.String[] SAML_VALUE_TYPES
private static java.lang.String[] specialChars
private static java.lang.String[] predEntities
public java.lang.Object getCredential(java.lang.String tokenType,
java.lang.String issuerName,
ContextHandler ctxHandler,
Purpose p)
AbstractSAMLCredentialProvidergetCredential in interface CredentialProvidergetCredential in class AbstractSAMLCredentialProvidertokenType - saml token typeissuerName - issuer name is not usedctxHandler - context handler to create the new saml credentialp - purpose of saml tokenprivate java.lang.Object getCredentialLocalCSS(java.lang.String tokenType,
java.lang.String issuerName,
ContextHandler ctxHandler,
Purpose p)
private SAMLCredential getCredentialSTSCSS(java.lang.String tokenType, ContextHandler ctxHandler)
private void intWSTContext(java.lang.String tokenType,
weblogic.wsee.security.wst.framework.WSTContext wstCtx,
javax.xml.rpc.handler.MessageContext msgCtx,
SecurityTokenContextHandler securityCtxHandler)
throws PolicyException,
WSSecurityException
PolicyExceptionWSSecurityExceptionprivate void setOnBehalfOfLocalSAMLToken(java.lang.String tokenType,
java.lang.String issuerName,
ContextHandler ctxHandler,
Purpose p)
private java.lang.Object setActAsLocalSAMLToken(java.lang.String tokenType,
java.lang.String issuerName,
ContextHandler ctxHandler,
Purpose p)
tokenType - issuerName - ctxHandler - p - private java.lang.Object setActAsToken(weblogic.wsee.security.wst.framework.WSTContext wstCtx,
javax.xml.rpc.handler.MessageContext msgCtx)
throws PolicyException,
WSSecurityException
wstCtx - msgCtx - PolicyExceptionWSSecurityExceptionprivate static boolean isSamlTokenString(java.lang.String inString)
private static java.lang.String decodeSamlXml(java.lang.String s)
private SecurityToken getSamlSecurityToken(java.lang.String samlString)
private static boolean isSamlValueType(java.lang.String type)
private void setOnBehalfOfToken(weblogic.wsee.security.wst.framework.WSTContext wstCtx,
javax.xml.rpc.handler.MessageContext msgCtx)
throws PolicyException,
WSSecurityException
PolicyExceptionWSSecurityExceptionprivate void intWSTContext(java.lang.String tokenType,
weblogic.wsee.security.wst.framework.WSTContext wstCtx,
javax.xml.rpc.handler.MessageContext msgCtx,
SecurityTokenContextHandler securityCtxHandler,
org.w3c.dom.Element issuedTokenElement)
throws PolicyException,
WSSecurityException
PolicyExceptionWSSecurityExceptionprivate void initPolicy(SecurityTokenContextHandler securityCtxHandler, weblogic.wsee.security.wst.framework.WSTContext wstCtx, javax.xml.rpc.handler.MessageContext msgCtx) throws PolicyException
PolicyExceptionpublic static SAMLCredential createCredential(weblogic.wsee.security.wst.framework.TrustSoapClient soapClient, weblogic.wsee.security.wst.framework.WSTContext wstCtx, SecurityTokenHandler tokh, java.lang.String tokenType) throws WSTFaultException
WSTFaultExceptionprotected static SecurityTokenContextHandler getSecurityCtxHandler(ContextHandler ctxHandler)
protected static javax.xml.rpc.handler.MessageContext getMessageContext(SecurityTokenContextHandler securityCtxHandler)
private java.lang.String getIssueAction(java.lang.String trustVersion)
static SAMLCredential getFromContext(javax.xml.rpc.handler.MessageContext msgCtx)
static void setToContext(javax.xml.rpc.handler.MessageContext msgCtx,
SAMLCredential sc)
private static SAMLCredential getCredentialFromRSTR(weblogic.wsee.security.wst.framework.WSTContext wstCtx, weblogic.wsee.security.wst.binding.RequestSecurityTokenResponse rstr, java.lang.String tokenType) throws WSTFaultException
WSTFaultExceptionprivate static java.security.Key getSymmetricKeyFromRstr(weblogic.wsee.security.wst.binding.RequestSecurityTokenResponse rstr,
weblogic.wsee.security.wst.framework.WSTContext wstCtx)
throws weblogic.wsee.security.wst.faults.RequestFailedException,
weblogic.wsee.security.wst.faults.InvalidScopeException
weblogic.wsee.security.wst.faults.RequestFailedExceptionweblogic.wsee.security.wst.faults.InvalidScopeExceptionprivate static weblogic.wsee.security.wst.binding.BinarySecret getBinarySecret(weblogic.wsee.security.wst.binding.RequestSecurityTokenResponse rstr)
throws weblogic.wsee.security.wst.faults.RequestFailedException
weblogic.wsee.security.wst.faults.RequestFailedExceptionpublic java.lang.String[] getValueTypes()
AbstractSAMLCredentialProvidergetValueTypes in interface CredentialProvidergetValueTypes in class AbstractSAMLCredentialProvider