|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SecurityManager
The SecurityManager manages many aspects of the security implementation.
Field Summary | |
---|---|
static java.lang.String |
bodyPartID
|
Method Summary | |
---|---|
byte[] |
decode(java.lang.String base64enc)
decodes a base64 encoded String |
java.lang.String |
encode(byte[] raw)
encodes a byteArray |
java.lang.String |
getAliasFromBinding(CommunicationBinding binding)
This method will return the alias that belongs to the binding, if the the HTTPBinding is a HTTPSBinding |
java.lang.String |
getBodySignature(XmlSerializer serial,
Message msg)
getBodySignature generates the signature for the xml data supplied WARNING: Do not call this method before completion of the body part |
java.lang.Object |
getCertificate(java.lang.String certAlias)
getCertificate |
java.lang.Object[] |
getKeyManagers()
|
long |
getMD5Hash(java.lang.String str)
getMD5Hash returns the MD5 hash of the given string |
XmlSerializer |
getNewCanonicalSerializer(java.lang.String id)
getNewCanonicalSerializer |
java.lang.Object |
getPrivateKey(java.lang.String privKey,
java.lang.String pswd)
getPrivateKey |
java.lang.Object[] |
getTrustManagers()
|
boolean |
isHTTPS(URI uri)
|
boolean |
validateMessage(byte[] signature,
ProtocolData pd,
EndpointReference epr,
java.lang.String[] aliasCandidates)
validateMessage |
java.io.InputStream |
wrapInputStream(java.io.InputStream in,
ProtocolData pd)
wraps the supplied InputStream with an instance of IDawareInputStream |
Field Detail |
---|
static final java.lang.String bodyPartID
Method Detail |
---|
java.lang.String getBodySignature(XmlSerializer serial, Message msg)
serial
- the (canonical) serializer that works with the messages to
be signed.msg
- the message to sign
java.lang.Object getPrivateKey(java.lang.String privKey, java.lang.String pswd)
privKey
- the alias of the private key in the java keystore.pswd
- the password to access the private key
boolean validateMessage(byte[] signature, ProtocolData pd, EndpointReference epr, java.lang.String[] aliasCandidates)
signature
- the signature delivered with the messagepd
- the protocol data instance belonging to the message to be
validateduuid
- the EndpointReference of the source device/servicexaddresses
- of the source device/Service
java.lang.Object getCertificate(java.lang.String certAlias)
certAlias
- the alias of the certificate in the java keystore.
java.io.InputStream wrapInputStream(java.io.InputStream in, ProtocolData pd)
in
-
XmlSerializer getNewCanonicalSerializer(java.lang.String id)
id
- the id of the part that will be signed/canonicalized
long getMD5Hash(java.lang.String str)
byte[] decode(java.lang.String base64enc)
base64enc
-
java.lang.String encode(byte[] raw)
the
- raw byte array
java.lang.Object[] getTrustManagers() throws java.io.IOException, java.lang.Exception
java.io.IOException
java.lang.Exception
java.lang.Object[] getKeyManagers() throws java.io.IOException, java.lang.Exception
java.io.IOException
java.lang.Exception
java.lang.String getAliasFromBinding(CommunicationBinding binding)
binding
-
boolean isHTTPS(URI uri)
uri
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |