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 String
SAML_BEARER_1_0
protected static String
SAML_BEARER_2_0
protected static String
SAML_HOLDER_OF_KEY_1_0
protected static String
SAML_HOLDER_OF_KEY_2_0
protected static String
SAML_SENDER_VOUCHES_1_0
protected static String
SAML_SENDER_VOUCHES_2_0
-
Constructor Summary
Constructors Constructor Description DefaultSAMLTokenProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
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)
void
generateToken(IssuedTokenContext ctx)
void
invalidateToken(IssuedTokenContext ctx)
void
isValideToken(IssuedTokenContext ctx)
void
renewToken(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:
generateToken
in interfaceSTSTokenProvider
- Throws:
WSTrustException
-
isValideToken
public void isValideToken(IssuedTokenContext ctx) throws WSTrustException
- Specified by:
isValideToken
in interfaceSTSTokenProvider
- Throws:
WSTrustException
-
renewToken
public void renewToken(IssuedTokenContext ctx) throws WSTrustException
- Specified by:
renewToken
in interfaceSTSTokenProvider
- Throws:
WSTrustException
-
invalidateToken
public void invalidateToken(IssuedTokenContext ctx) throws WSTrustException
- Specified by:
invalidateToken
in 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
-
-