|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.wss.impl.policy.MLSPolicy
com.sun.xml.wss.impl.policy.mls.WSSPolicy
com.sun.xml.wss.impl.policy.mls.KeyBindingBase
com.sun.xml.wss.impl.policy.mls.AuthenticationTokenPolicy.SAMLAssertionBinding
public static class AuthenticationTokenPolicy.SAMLAssertionBinding
A policy representing a SAML Assertion. An instance of this class can be used as concrete feature binding for an AuthenticationTokenPolicy.
| Field Summary | |
|---|---|
static String |
HOK_ASSERTION
Holder-Of-Key Subject ConfirmationMethod |
static String |
SV_ASSERTION
Sender-Vouches Subject ConfirmationMethod |
static String |
V10_ASSERTION
|
static String |
V11_ASSERTION
|
static String |
V20_ASSERTION
|
| Fields inherited from class com.sun.xml.wss.impl.policy.mls.KeyBindingBase |
|---|
claims, claimsDialect, INCLUDE_ALWAYS, INCLUDE_ALWAYS_TO_RECIPIENT, INCLUDE_ALWAYS_TO_RECIPIENT_VER2, INCLUDE_ALWAYS_VER2, INCLUDE_NEVER, INCLUDE_NEVER_VER2, INCLUDE_ONCE, INCLUDE_ONCE_VER2, includeToken, issuer, policyToken |
| Fields inherited from class com.sun.xml.wss.impl.policy.mls.WSSPolicy |
|---|
_featureBinding, _isOptional, _keyBinding, _policyIdentifier, bsp, UUID |
| Fields inherited from class com.sun.xml.wss.impl.policy.MLSPolicy |
|---|
readonly |
| Constructor Summary | |
|---|---|
AuthenticationTokenPolicy.SAMLAssertionBinding()
Default constructor |
|
AuthenticationTokenPolicy.SAMLAssertionBinding(String type,
String keyIdentifier,
String authorityIdentifier,
String referenceType)
Constructor |
|
| Method Summary | |
|---|---|
Object |
clone()
clone operatror |
boolean |
equals(WSSPolicy policy)
equals operator |
boolean |
equalsIgnoreTargets(WSSPolicy binding)
|
Element |
get_assertion()
|
Element |
getAssertion()
|
String |
getAssertionId()
A CallbackHandler can choose to just set the AuthorityBinding and the AssertionId, and not set the actual assertion |
XMLStreamReader |
getAssertionReader()
|
String |
getAssertionType()
|
Element |
getAuthorityBinding()
|
String |
getAuthorityIdentifier()
|
String |
getKeyAlgorithm()
|
String |
getKeyIdentifier()
|
String |
getRealId()
|
String |
getReferenceType()
|
String |
getSAMLVersion()
|
String |
getSTRID()
|
String |
getType()
Get the type of the policy. |
MLSPolicy |
newPrivateKeyBinding()
Create and set the KeyBinding for this WSSPolicy to a PrivateKeyBinding |
void |
setAssertion(Element assertion)
set the SAML Assertion |
void |
setAssertion(XMLStreamReader reader)
|
void |
setAssertionId(String id)
set the AssertionId for the possibly remote assertion A CallbackHandler can choose to just set the AuthorityBinding and the AssertionId, and not set the actual assertion |
void |
setAssertionType(String type)
set the SubjectConfirmation type of the SAML assertion |
void |
setAuthorityBinding(Element authorityBinding)
set the SAML AuthorityBinding element, identifying a remote assertion |
void |
setAuthorityIdentifier(String uri)
set the abstract identifier for the issuing authority |
void |
setKeyAlgorithm(String algorithm)
set the keyAlgorithm to be used |
void |
setKeyIdentifier(String ki)
set the abstract identifier for the Confirmation Key |
void |
setRealId(String realId)
|
void |
setReferenceType(String rtype)
set the ReferenceType to be used for references to the SAML Assertion |
void |
setSAMLVersion(String ver)
|
void |
setSTRID(String id)
|
String |
toString()
|
| Methods inherited from class com.sun.xml.wss.impl.policy.mls.KeyBindingBase |
|---|
getClaims, getIncludeToken, getIssuer, policyTokenWasSet, setClaims, setIncludeToken, setIssuer, setPolicyTokenFlag |
| Methods inherited from class com.sun.xml.wss.impl.policy.mls.WSSPolicy |
|---|
getFeatureBinding, getKeyBinding, getPolicyIdentifier, getUUID, isBSP, isBSP, isOptional, isOptional, setFeatureBinding, setKeyBinding, setPolicyIdentifier, setUUID |
| Methods inherited from class com.sun.xml.wss.impl.policy.MLSPolicy |
|---|
isReadOnly, isReadOnly |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String V10_ASSERTION
public static final String V11_ASSERTION
public static final String V20_ASSERTION
public static final String SV_ASSERTION
public static final String HOK_ASSERTION
| Constructor Detail |
|---|
public AuthenticationTokenPolicy.SAMLAssertionBinding()
public AuthenticationTokenPolicy.SAMLAssertionBinding(String type,
String keyIdentifier,
String authorityIdentifier,
String referenceType)
type - the SubjectConfirmation type of the SAML assertion, one of SV, HOKkeyIdentifier - an abstract identifier for the Confirmation KeyauthorityIdentifier - an abstract identifier for the issuing authorityreferenceType - the reference type for references to the SAML Assertion,
should be one of KeyIdentifier, Embedded reference type as defined by
WSS SAML Token profile 1.0.| Method Detail |
|---|
public void setAssertionType(String type)
type - the SubjectConfirmation type of the SAML assertion, one of SV, HOKpublic void setSAMLVersion(String ver)
public String getSAMLVersion()
public MLSPolicy newPrivateKeyBinding()
public void setKeyIdentifier(String ki)
ki - the abstract identifier for the Confirmation Keypublic void setAuthorityIdentifier(String uri)
uri - the URI of the Assertion Issuerpublic void setReferenceType(String rtype)
rtype - reference type (one of KeyIdentifier, Embedded)public void setAuthorityBinding(Element authorityBinding)
authorityBinding - public void setAssertion(Element assertion)
assertion - the SAML Assertionpublic void setAssertion(XMLStreamReader reader)
public void setKeyAlgorithm(String algorithm)
algorithm - the keyAlgorithm to be usedpublic String getKeyAlgorithm()
public String getReferenceType()
public String getAssertionType()
public String getKeyIdentifier()
public String getAuthorityIdentifier()
public Element getAuthorityBinding()
public Element getAssertion()
public XMLStreamReader getAssertionReader()
public boolean equals(WSSPolicy policy)
equals in class WSSPolicypolicy - the policy to be compared for equality
SignaturePolicy,
EncryptionPolicy,
AuthenticationTokenPolicy,
PrivateKeyBinding,
SymmetricKeyBindingpublic boolean equalsIgnoreTargets(WSSPolicy binding)
equalsIgnoreTargets in class WSSPolicypublic Object clone()
WSSPolicy
clone in class WSSPolicySignaturePolicy,
EncryptionPolicy,
AuthenticationTokenPolicypublic String getType()
SecurityPolicyImplementation Note: Useful to avoid instanceof checks and String.equals checks
getType in interface SecurityPolicypublic void setSTRID(String id)
public String getSTRID()
getSTRID in interface LazyKeyBindingpublic void setAssertionId(String id)
id - the Assertion Id of the possibly remote SAML Assertionpublic String getAssertionId()
public String toString()
toString in class Objectpublic Element get_assertion()
public String getRealId()
getRealId in interface LazyKeyBindingpublic void setRealId(String realId)
setRealId in interface LazyKeyBinding
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||