Use Cases for Petals-BC-SOAP

compared with
Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (3)

View Page History
h4. Creation of private keys

Open a command shell and go into the directory $PETALS_HOME/https.

* Creation and auto-sign of the private key 'sslclt':
{code}
{code}

Add the properties file 'service.properties' under the directory 'jbi' and containing:
{code}
org.apache.ws.security.crypto.provider=org.apache.ws.security.components.crypto.Merlin
org.apache.ws.security.crypto.merlin.keystore.type=jks
org.apache.ws.security.crypto.merlin.keystore.password=keystoresrv
org.apache.ws.security.crypto.merlin.file=../https/keystore-srv.jks
{code}

Add the class 'PWCBHandler' as password callback:
{code}
public class PWCBHandler implements CallbackHandler {

public void handle (Callback[] callbacks) throws IOException, UnsupportedCallbackException {

for (int i = 0; i < callbacks.length; i++) {
WSPasswordCallback pwcb = (WSPasswordCallback)callbacks[i];
String id = pwcb.getIdentifer();
if (id.equals("wsseclt-id")) {
pwcb.setPassword("pwwsseid");
}
else if (id.equals("wsseclt-crypt")) {
pwcb.setPassword("keystoresrv");
}
}
}
}
{code}


h1. Complex Use Cases