WAS v8.5 > Develop applications > Develop web services - Security (WS-Security) > Develop applications that use Web Services Security > Develop message-level security for JAX-WS web services > Use Web Services Security SPIs

Create fully-populated username tokens for Web services security for use by Generic Issue Login Modules

We can use the GenericSecurityTokenFactory APIs to create fully-populated UsernameToken security tokens for use by the WS-Security runtime. These security tokens can be used for, but are not be limited to, WSSAPIs, and JAAS login modules.

The GenericSecurityTokenFactory provides several APIs used to create UsernameTokens that can be emitted with the GenericIssuedTokenGenerateLoginModule.

When a fully-populated UsernameToken is created using a GenericSecurityTokenFactory API, the token is the complete form of a security token that can be emitted by the WS-Security run time. After the token is created, the username and password in the token cannot be modified. Therefore, determine the type of token to create, and then issue commands, similar to the ones specified in one of the following steps, to create your token.


Related


Create custom security tokens for Web services security using the GenericSecurityTokenFactory SPIs
Generate and Consuming custom tokens with the Generic Issue Login Modules


+

Search Tips   |   Advanced Search