Package com.sun.xml.wss.impl.keyinfo
Class DirectReferenceStrategy
java.lang.Object
com.sun.xml.wss.impl.keyinfo.KeyInfoStrategy
com.sun.xml.wss.impl.keyinfo.DirectReferenceStrategy
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDirectReferenceStrategy
(String samlAssertionId) DirectReferenceStrategy
(String alias, boolean forSigning) -
Method Summary
Modifier and TypeMethodDescriptiongetAlias()
void
insertKey
(KeyInfoHeaderBlock keyInfo, SecurableSoapMessage secureMsg, String x509TokenId) insert the Key Information into a ds:KeyInfo using the appropriate schemevoid
insertKey
(KeyInfoHeaderBlock keyInfo, SecurableSoapMessage secureMsg, String x509TokenId, String valueType) void
insertKey
(SecurityTokenReference tokenRef, SecurableSoapMessage secureMsg) insert the Key Information into a SecurityTokenReference using the appropriate schemevoid
Sets the certificate corresponding to the security operationMethods inherited from class com.sun.xml.wss.impl.keyinfo.KeyInfoStrategy
getInstance
-
Field Details
-
log
-
-
Constructor Details
-
DirectReferenceStrategy
public DirectReferenceStrategy() -
DirectReferenceStrategy
-
DirectReferenceStrategy
-
-
Method Details
-
insertKey
public void insertKey(SecurityTokenReference tokenRef, SecurableSoapMessage secureMsg) throws XWSSecurityException Description copied from class:KeyInfoStrategy
insert the Key Information into a SecurityTokenReference using the appropriate scheme- Specified by:
insertKey
in classKeyInfoStrategy
- Parameters:
tokenRef
- the SecurityTokenReference into which the Key Information has to be inserted.secureMsg
- the SecurableSoapMessage- Throws:
XWSSecurityException
- if there was a problem in inserting the key information
-
insertKey
public void insertKey(KeyInfoHeaderBlock keyInfo, SecurableSoapMessage secureMsg, String x509TokenId) throws XWSSecurityException Description copied from class:KeyInfoStrategy
insert the Key Information into a ds:KeyInfo using the appropriate scheme- Specified by:
insertKey
in classKeyInfoStrategy
- Parameters:
keyInfo
- the KeyInfo block into which the Key Information has to be inserted.secureMsg
- the SecurableSoapMessagex509TokenId
- value of the <xwss:X509Token>/@id in config file- Throws:
XWSSecurityException
- if there was a problem in inserting the key information
-
insertKey
public void insertKey(KeyInfoHeaderBlock keyInfo, SecurableSoapMessage secureMsg, String x509TokenId, String valueType) throws XWSSecurityException - Throws:
XWSSecurityException
-
setCertificate
Description copied from class:KeyInfoStrategy
Sets the certificate corresponding to the security operation- Specified by:
setCertificate
in classKeyInfoStrategy
-
getAlias
- Specified by:
getAlias
in classKeyInfoStrategy
-