Java XML signature -
hello try use java digital signature api. create keypair instance , other xml signature elements , print output xml. problem keyinfo xml element. in output xml looks like:
<dsig:keyinfo id="keyinfo001"> <dsig:keyvalue> <dsig:rsakeyvalue> <dsig:modulus>gfwmviozvknzvifbuack3pcwzpyfdosmu2bkfuzjwd4xlwm1lcewe8bgpvafmsjhaob/5edrs+gu uqngkj106petnizmbqvyjiold3s1xhh0086dbpnbbh3/3b/ddebxz6kaurwvajeqopsseuzfbj1q gdzi4q7qoemroqaypdc=</dsig:modulus> <dsig:exponent>aqab</dsig:exponent> </dsig:rsakeyvalue> </dsig:keyvalue>
but if want print modulus (public key) publickey instance , create string bytes, java doesn´t give me same result in xml.
i can access publickey this:
keypair.getpublickey.getencoded()
please, ideas?
i try use: base64.getencoder.encodetostring(keypair.getpublickey().getencoded()) outout still not same in generated xml domsigning instance.
Comments
Post a Comment