Class DefaultSAMLTokenProvider
- java.lang.Object
-
- com.sun.xml.ws.security.trust.impl.DefaultSAMLTokenProvider
-
- All Implemented Interfaces:
STSTokenProvider
public class DefaultSAMLTokenProvider extends Object implements STSTokenProvider
- Author:
- Jiandong Guo
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringSAML_BEARER_1_0protected static StringSAML_BEARER_2_0protected static StringSAML_HOLDER_OF_KEY_1_0protected static StringSAML_HOLDER_OF_KEY_2_0protected static StringSAML_SENDER_VOUCHES_1_0protected static StringSAML_SENDER_VOUCHES_2_0
-
Constructor Summary
Constructors Constructor Description DefaultSAMLTokenProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AssertioncreateSAML11Assertion(WSTrustVersion wstVer, int lifeSpan, String confirMethod, String assertionId, String issuer, String appliesTo, org.apache.xml.security.keys.KeyInfo keyInfo, Map<QName,List<String>> claimedAttrs, String keyType)protected AssertioncreateSAML20Assertion(WSTrustVersion wstVer, int lifeSpan, String confirMethod, String assertionId, String issuer, String appliesTo, org.apache.xml.security.keys.KeyInfo keyInfo, Map<QName,List<String>> claimedAttrs, String keyType, String authnCtx)voidgenerateToken(IssuedTokenContext ctx)voidinvalidateToken(IssuedTokenContext ctx)voidisValideToken(IssuedTokenContext ctx)voidrenewToken(IssuedTokenContext ctx)
-
-
-
Field Detail
-
SAML_HOLDER_OF_KEY_1_0
protected static final String SAML_HOLDER_OF_KEY_1_0
- See Also:
- Constant Field Values
-
SAML_HOLDER_OF_KEY_2_0
protected static final String SAML_HOLDER_OF_KEY_2_0
- See Also:
- Constant Field Values
-
SAML_BEARER_1_0
protected static final String SAML_BEARER_1_0
- See Also:
- Constant Field Values
-
SAML_BEARER_2_0
protected static final String SAML_BEARER_2_0
- See Also:
- Constant Field Values
-
SAML_SENDER_VOUCHES_1_0
protected static final String SAML_SENDER_VOUCHES_1_0
- See Also:
- Constant Field Values
-
SAML_SENDER_VOUCHES_2_0
protected static final String SAML_SENDER_VOUCHES_2_0
- See Also:
- Constant Field Values
-
-
Method Detail
-
generateToken
public void generateToken(IssuedTokenContext ctx) throws WSTrustException
- Specified by:
generateTokenin interfaceSTSTokenProvider- Throws:
WSTrustException
-
isValideToken
public void isValideToken(IssuedTokenContext ctx) throws WSTrustException
- Specified by:
isValideTokenin interfaceSTSTokenProvider- Throws:
WSTrustException
-
renewToken
public void renewToken(IssuedTokenContext ctx) throws WSTrustException
- Specified by:
renewTokenin interfaceSTSTokenProvider- Throws:
WSTrustException
-
invalidateToken
public void invalidateToken(IssuedTokenContext ctx) throws WSTrustException
- Specified by:
invalidateTokenin interfaceSTSTokenProvider- Throws:
WSTrustException
-
createSAML11Assertion
protected Assertion createSAML11Assertion(WSTrustVersion wstVer, int lifeSpan, String confirMethod, String assertionId, String issuer, String appliesTo, org.apache.xml.security.keys.KeyInfo keyInfo, Map<QName,List<String>> claimedAttrs, String keyType) throws WSTrustException
- Throws:
WSTrustException
-
createSAML20Assertion
protected Assertion createSAML20Assertion(WSTrustVersion wstVer, int lifeSpan, String confirMethod, String assertionId, String issuer, String appliesTo, org.apache.xml.security.keys.KeyInfo keyInfo, Map<QName,List<String>> claimedAttrs, String keyType, String authnCtx) throws WSTrustException
- Throws:
WSTrustException
-
-