WS-Security UsernameToken认证密码摘要生成
<UsernameToken>
<Username>admin</Username>
<Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">JRtFVKSNwVa1zFfTh/RueiQcr3k=</Password>
<Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">pDisbkeGo0iTjPEUMCsS1eUDAAAAAA==</Nonce>
<Created xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2016-09-08T06:28:55.408Z</Created>
</UsernameToken>
我知道Password_Digest = Base64 ( SHA-1 ( nonce + created + password ) )
但我这样生成的没用:
Password_Digest = Base64 ( SHA-1 ( “pDisbkeGo0iTjPEUMCsS1eUDAAAAAA==”+ “2016-09-08T06:28:55.408Z”+ “yg12345678”) )
请问要怎样生成呢?还有Nonce有什么生成规则吗?