|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.rampart.util.RampartUtil
Constructor Summary | |
RampartUtil()
|
Method Summary | |
static java.lang.String |
addWsuIdToElement(org.apache.axiom.om.OMElement elem)
|
static org.w3c.dom.Element |
appendChildToSecHeader(RampartMessageData rmd,
org.w3c.dom.Element elem)
|
static org.w3c.dom.Element |
appendChildToSecHeader(RampartMessageData rmd,
org.apache.axiom.om.OMElement elem)
|
static org.apache.axiom.om.OMElement |
createRSTTempalteForSCT(int conversationVersion,
int wstVersion)
|
static java.lang.String |
getContextIdentifierKey(org.apache.axis2.context.MessageContext msgContext)
Creates the unique (reproducible) id for to hold the context identifier of the message exchange. |
static java.util.Hashtable |
getContextMap(org.apache.axis2.context.MessageContext msgContext)
Returns the map of security context token identifiers |
static java.util.Vector |
getEncryptedParts(RampartMessageData rmd)
|
static org.apache.ws.security.components.crypto.Crypto |
getEncryptionCrypto(RampartConfig config,
java.lang.ClassLoader loader)
Create the Crypto instance for encryption using information
from the rampart configuration assertion |
static javax.crypto.KeyGenerator |
getEncryptionKeyGenerator(java.lang.String symEncrAlgo)
|
static java.lang.String |
getIssuedToken(RampartMessageData rmd,
org.apache.ws.secpolicy.model.IssuedToken issuedToken)
Obtain an issued token. |
static int |
getKeyIdentifier(org.apache.ws.secpolicy.model.X509Token token)
figureout the key identifier of a give X509Token |
static javax.security.auth.callback.CallbackHandler |
getPasswordCB(org.apache.axis2.context.MessageContext msgContext,
RampartPolicyData rpd)
|
static javax.security.auth.callback.CallbackHandler |
getPasswordCB(RampartMessageData rmd)
|
static java.lang.String |
getRequestEncryptedKeyId(java.util.Vector results)
|
static byte[] |
getRequestEncryptedKeyValue(java.util.Vector results)
|
static java.lang.String |
getSecConvToken(RampartMessageData rmd,
org.apache.ws.secpolicy.model.SecureConversationToken secConvTok)
Obtain a security context token. |
static org.apache.ws.security.components.crypto.Crypto |
getSignatureCrypto(RampartConfig config,
java.lang.ClassLoader loader)
Create the Crypto instance for signature using information
from the rampart configuration assertion |
static java.util.Vector |
getSignedParts(RampartMessageData rmd)
|
static java.lang.String |
getSoapBodyId(org.apache.axiom.soap.SOAPEnvelope env)
|
static int |
getTimeToLive(RampartMessageData messageData)
|
static java.lang.String |
getToken(RampartMessageData rmd,
org.apache.axiom.om.OMElement rstTemplate,
java.lang.String issuerEpr,
java.lang.String action,
org.apache.neethi.Policy issuerPolicy)
Request a token. |
static org.w3c.dom.Element |
insertSiblingAfter(RampartMessageData rmd,
org.w3c.dom.Element child,
org.w3c.dom.Element sibling)
|
static org.w3c.dom.Element |
insertSiblingAfterOrPrepend(RampartMessageData rmd,
org.w3c.dom.Element child,
org.w3c.dom.Element elem)
If the child is present insert the element as a sibling after him. |
static org.w3c.dom.Element |
insertSiblingBefore(RampartMessageData rmd,
org.w3c.dom.Element child,
org.w3c.dom.Element sibling)
|
static boolean |
isTokenValid(RampartMessageData rmd,
java.lang.String id)
|
static org.apache.ws.security.WSPasswordCallback |
performCallback(javax.security.auth.callback.CallbackHandler cbHandler,
java.lang.String username,
int doAction)
Perform a callback to get a password. |
static java.lang.String |
processIssuerAddress(org.apache.axiom.om.OMElement issuerAddress)
Process a give issuer address element and return the address. |
static void |
setEncryptionUser(RampartMessageData rmd,
org.apache.ws.security.message.WSSecEncryptedKey encrKeyBuilder)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RampartUtil()
Method Detail |
public static javax.security.auth.callback.CallbackHandler getPasswordCB(RampartMessageData rmd) throws RampartException
RampartException
public static javax.security.auth.callback.CallbackHandler getPasswordCB(org.apache.axis2.context.MessageContext msgContext, RampartPolicyData rpd) throws RampartException
msgContext
- rpd
-
CallbackHandler
instance
RampartException
public static org.apache.ws.security.WSPasswordCallback performCallback(javax.security.auth.callback.CallbackHandler cbHandler, java.lang.String username, int doAction) throws RampartException
RampartException
public static org.apache.ws.security.components.crypto.Crypto getEncryptionCrypto(RampartConfig config, java.lang.ClassLoader loader) throws RampartException
Crypto
instance for encryption using information
from the rampart configuration assertion
config
-
Crypto
instance to be used for encryption
RampartException
public static org.apache.ws.security.components.crypto.Crypto getSignatureCrypto(RampartConfig config, java.lang.ClassLoader loader) throws RampartException
Crypto
instance for signature using information
from the rampart configuration assertion
config
-
Crypto
instance to be used for signature
RampartException
public static int getKeyIdentifier(org.apache.ws.secpolicy.model.X509Token token) throws RampartException
token
-
RampartException
public static java.lang.String processIssuerAddress(org.apache.axiom.om.OMElement issuerAddress) throws RampartException
issuerAddress
-
RampartException
- If the issuer address element is malformed.public static org.apache.axiom.om.OMElement createRSTTempalteForSCT(int conversationVersion, int wstVersion) throws RampartException
RampartException
public static int getTimeToLive(RampartMessageData messageData)
public static java.lang.String getSecConvToken(RampartMessageData rmd, org.apache.ws.secpolicy.model.SecureConversationToken secConvTok) throws org.apache.rahas.TrustException, RampartException
rmd
- secConvTok
-
org.apache.rahas.TrustException
RampartException
public static java.lang.String getIssuedToken(RampartMessageData rmd, org.apache.ws.secpolicy.model.IssuedToken issuedToken) throws RampartException
rmd
- issuedToken
-
RampartException
public static java.lang.String getToken(RampartMessageData rmd, org.apache.axiom.om.OMElement rstTemplate, java.lang.String issuerEpr, java.lang.String action, org.apache.neethi.Policy issuerPolicy) throws RampartException
rmd
- rstTemplate
- issuerEpr
- action
- issuerPolicy
-
RampartException
public static java.lang.String getSoapBodyId(org.apache.axiom.soap.SOAPEnvelope env)
public static java.lang.String addWsuIdToElement(org.apache.axiom.om.OMElement elem)
public static org.w3c.dom.Element appendChildToSecHeader(RampartMessageData rmd, org.apache.axiom.om.OMElement elem)
public static org.w3c.dom.Element appendChildToSecHeader(RampartMessageData rmd, org.w3c.dom.Element elem)
public static org.w3c.dom.Element insertSiblingAfter(RampartMessageData rmd, org.w3c.dom.Element child, org.w3c.dom.Element sibling)
public static org.w3c.dom.Element insertSiblingBefore(RampartMessageData rmd, org.w3c.dom.Element child, org.w3c.dom.Element sibling)
public static java.util.Vector getEncryptedParts(RampartMessageData rmd)
public static java.util.Vector getSignedParts(RampartMessageData rmd)
public static javax.crypto.KeyGenerator getEncryptionKeyGenerator(java.lang.String symEncrAlgo) throws org.apache.ws.security.WSSecurityException
org.apache.ws.security.WSSecurityException
public static java.lang.String getContextIdentifierKey(org.apache.axis2.context.MessageContext msgContext)
public static java.util.Hashtable getContextMap(org.apache.axis2.context.MessageContext msgContext)
public static boolean isTokenValid(RampartMessageData rmd, java.lang.String id) throws RampartException
RampartException
public static void setEncryptionUser(RampartMessageData rmd, org.apache.ws.security.message.WSSecEncryptedKey encrKeyBuilder) throws RampartException
RampartException
public static java.lang.String getRequestEncryptedKeyId(java.util.Vector results)
public static byte[] getRequestEncryptedKeyValue(java.util.Vector results)
public static org.w3c.dom.Element insertSiblingAfterOrPrepend(RampartMessageData rmd, org.w3c.dom.Element child, org.w3c.dom.Element elem)
rmd
- child
- elem
- - element mentioned above
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |