Change signature tag name ds:Signature to Authsignature

Hello,
I need to change the XML signature tag name from : *<ds:Signature> to <Authsignature>*
<ds:Signature> to <Authsignature>using code like :
XMLSignatureFactory fac = XMLSignatureFactory.getInstance("DOM");
Reference ref = fac.newReference("", fac.newDigestMethod(DigestMethod.SHA256, null));
SignedInfo si = fac.newSignedInfo ...
KeyStore ks = KeyStore.getInstance();
DOMSignContext dsc = new DOMSignContext (keyEntry.getPrivateKey(), doc.getDocumentElement());
XMLSignature signature = fac.newXMLSignature(si, null);
signature.sign(dsc);
And validate it after.
using code like :
XMLSignatureFactory xmlSignatureFactory = XMLSignatureFactory.getInstance();
DOMValidateContext domValidateContext = new DOMValidateContext(KeySelector.singletonKeySelector(publicKey, signatureElement);
XMLSignature xmlSignature = xmlSignatureFactory.unmarshalXMLSignature(domValidateContext);
boolean ok = xmlSignature.validate(domValidateContext);How i can do it ?
Anyway, thanks in advance for your help.
Best regards,
Kurusaki

hi smullan,
I need to change it because i work with german norm (protocol) and the name of authentification and identification signature of XML file is *<AuthSignature>* and it is mandatory
am I really stucked as I feared??
sorry to bother you again, I ve got one last question
I can see in the xmldsig norm that the signature of a file is applied only
to the content of the <signedinfo> tag
So, given the <authsignature> tag is not included in the signed part of the
file, logically I could change the <authsignature> tag in <signature>
without corrupting my signed file could nt I??
It seems like I m in a dead end, but maybe there's a solution right
in front of me that I could nt see?? I wish!
Anyway, thanks in advance for your help.
Best regards,

Similar Messages

  • Change error tag names of the Response xml of a vanilla Inbound Webservice

    Hi,
    I am invoking a vanilla inbound webservice "Service Request" through Soap UI. Whenever any error occurs, in the response xml, some tags like "siebelf:error" is generated in the xml. However these tags are not present in the IO.My question is, can we change these tag names? If yes, then how?
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP-ENV:Body>
    <SOAP-ENV:Fault>
    <faultcode>SOAP-ENV:Server</faultcode>
    <faultstring>Method 'SetFieldValue' of business component 'Service Request' (integration component 'Service Request') returned the following error:
    "The value entered in field Status of buscomp Service Request does not match any value in the bounded pick list FIN PickList Service Request Status.(SBL-DAT-00225)"(SBL-EAI-04376)</faultstring>
    <detail>
    <siebelf:siebdetail xmlns:siebelf="http://www.siebel.com/ws/fault">
    <siebelf:logfilename>EAIObjMgr_enu_0033_34603066.log</siebelf:logfilename>
    <siebelf:errorstack>
    <siebelf:error>
    <siebelf:errorcode>SBL-DAT-00225</siebelf:errorcode>
    <siebelf:errorsymbol/>
    <siebelf:errormsg>Method 'SetFieldValue' of business component 'Service Request' (integration component 'Service Request') returned the following error:
    "The value entered in field Status of buscomp Service Request does not match any value in the bounded pick list FIN PickList Service Request Status.(SBL-DAT-00225)"(SBL-EAI-04376)</siebelf:errormsg>
    </siebelf:error>
    </siebelf:errorstack>
    </siebelf:siebdetail>
    </detail>
    </SOAP-ENV:Fault>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    Regards
    Sagnik

    Hi,
    You should be able to edit the generated wsdl as you suggested, changing the
    "return" to something else. Then save the wsdl to a file, say
    "filename.wsdl", and then at the top of your jws add the following:
    * @jws:wsdl file="filename.wsdl"
    This will force the jws to use the wsdl you specify and you won't have to
    edit any maps. Of course, as your jws changes, you will need to regenerate
    the wsdl and change the "return" to something else.
    Mike Kaufman
    Software Engineer
    BEA Systems
    "sherlock" <[email protected]> wrote in message
    news:3cbbe81f$[email protected]..
    >
    I have created a webservice in workshop that has some methods what returnstring-data.
    Now I want to create clients with different software-products. Because Igot some
    errors with one of these products, I looked into the WSDL and noticed thatthe
    name of the response-datatype is 'return' (by default).
    You can see this here:
    - <s:element name="addUserResponse">
    - <s:complexType>
    - <s:sequence>
    <s:element minOccurs="1" maxOccurs="1" name="return" nillable="true"type="s:string"
    />
    This 'return' is interpreted as a keyword in the client-generation tool.If I
    change this manually to another word then it works.
    When I try to change the 'Return XML' in the 'Edit Maps and Interface'Dialog,
    than the WSDL looks like this:
    - <s:element name="addUserResponse">
    - <s:complexType mixed="true">
    - <s:sequence>
    <s:any minOccurs="1" maxOccurs="unbounded" />
    Now the name- and type-definitions are completely missing.
    The question is now: how to change the name of the response-datatype from'return'
    to another (not-keyword-) name?
    I think this is important because I don't know what software a customeruses to
    generate a client and I can not expect that he manually edits myWSDL-file.
    >
    Thanks.

  • How can I change the tag name in cursor statement?

    Hi
    I have two tables: TableA and TableB. I want generate a XML file using XSU12 from these two tables, the XML structure like:
    <ROWSETA>
    <ROWA num="1">
    <A1></A1>
    <A2></A2>
    <A3>
    <A3_ROW num="1">
    <B1></B1>
    <B2></B2>
    </A3_ROW>
    <A3_ROW num="2">
    <B1></B1>
    <B2></B2>
    </A3_ROW>
    </A3>
    </ROWA>
    </ROWSETA>
    How can I change the tag name and attribute for "A3_ROW"?
    Thanks in advance!
    null

    In short, you can't.
    You can use the column alias as you're already doing to change the name of the "A3" part of "A3_ROW" but you cannot change the "_ROW" part of "A3_ROW". This is added automatically.
    You can combine the results of XSU with an XSLT stylesheet (made very simple if you're using XSU by working with Oracle XSQL Pages) to change the name of any element or completely restructure the XML output into a target XML, HTML, or text format.

  • Need to change the Tag name of Response Tag.

    Hello,
    While creating the Wsdl in eclipes, in which,I put operation name is (*PX_GET_INSTPRD*) Then automatically get its elements for input= (*PX_GET_INSTPRD*) and for output (*PX_GET_INSTPRDResponse*). I change the output element to PX_GET_INSTPRD_RESP, and proceed further, creating new types and element.
    After completing it, converting it to JAVA and deployed in tomcat, When i verfying the response in soupUI, I get PX_GET_INSTPRDResponse tag instead of PX_GET_INSTPRD_RESP.
    Will anyone please help me out, in getting correct response tag (*PX_GET_INSTPRD_RESP)*? And also explain why only main response tag change rest tag remain same??
    Thanks in advance Mukesh Puri

    Hi,
    If you developed framework based on objects id, then that will work.
    If you used text of objects to identify them( say example click on a link with text 'SignUp') then script will fail - fail to find object with text mentioned in script
    Regards,
    Deepu M

  • How can I create my own tag name while creating a partition table.

    I have X4500 running Solaris 10. I have formatted a disk and created partition table as given below.
    Specify disk (enter its number): 0
    selecting c0t0d0
    [disk formatted]
    /dev/dsk/c0t0d0s0 is part of active ZFS pool zpool1. Please see zpool(1M).
    FORMAT MENU:
    disk - select a disk
    type - select (define) a disk type
    partition - select (define) a partition table
    current - describe the current disk
    format - format and analyze the disk
    fdisk - run the fdisk program
    repair - repair a defective sector
    label - write label to the disk
    analyze - surface analysis
    defect - defect list management
    backup - search for backup labels
    verify - read and display labels
    inquiry - show vendor, product and revision
    volname - set 8-character volume name
    !<cmd> - execute <cmd>, then return
    quit
    format> partition
    PARTITION MENU:
    0 - change `0' partition
    1 - change `1' partition
    2 - change `2' partition
    3 - change `3' partition
    4 - change `4' partition
    5 - change `5' partition
    6 - change `6' partition
    select - select a predefined table
    modify - modify a predefined partition table
    name - name the current table
    print - display the current table
    label - write partition map and label to the disk
    !<cmd> - execute <cmd>, then return
    quit
    partition> print
    Current partition table (original):
    Total disk sectors available: 1953508749 + 16384 (reserved sectors)
    Part Tag Flag First Sector Size Last Sector
    0 usr wm 34 4.00GB 8388641
    1 usr wm 8388642 2.00GB 12582945
    2 usr wm 12582946 200.00GB 432013345
    3 usr wm 432013346 175.00GB 799014945
    4 usr wm 1166180386 375.43GB 1953508748
    5 usr wm 799014946 175.00GB 1166016545
    6 usr wm 1166016546 80.00MB 1166180385
    8 reserved wm 1953508749 8.00MB 1953525132
    partition>
    I am unable to specify my own tag name. How can I change the tag name to one of my interest.
    I need to create 3 partitions as told below
    partitions:
    /earth
    /mars
    /work
    /earth and /work should be roughly equal in size, /mars should be twice the size of the others, if that is possible. If not 3 partitions of equal size will do.
    Please, help me .
    Thank you.

    Exactly 1TB? Slightly under/slightly over?
    Traditional Solaris disk labels are in VTOC format, but this format cannot describe disks larger than 1TB. So EFI labels must be used on disks larger than 1TB. Setup is slightly different.
    Are these physical disks or LUNs from a SAN array? If they are array LUNS, it is often the case that they don't have a Sun label of any type. So...
    #1 Apply a Solaris label
    If the LUNS don't have a label (when selected in 'format', it gives a warning that no label is present and offers to apply a label immediately). When run non-interactively, format assumes "yes" for any questions. So all you'd have to do is select every disk to have it apply labels to any unlabled disk. Run 'format' once and find the highest number (maybe it's 50 for you). Create a text file that looks like this:
    disk 1
    disk 2
    disk 3
    disk 50Then feed that to format like this:
    # format -f /tmp/disklist or whatever you've named the file.
    #2 Apply the partition layout to all disks you want.
    You asked if you should do the same procedure, but I don't see that you've actually done anything above other than print out the existing layout. Take one of your 48 drives and partition it the way you want manually (set the slices to the sizes that you want). Then you can copy the layout of that disk to others. You only want to do this between disks/LUNs of the same size. As an example, if you've explicitly partitioned c1t0d0 and you want to apply this to c1t1d0, do this:
    # prtvtoc /dev/rdsk/c1t0d0s2 | fmthard -s - /dev/rdsk/c1t1d0s2Repeat for all of your other disks.
    Darren

  • Tag names

    Question: Is ther any way that i can change the tag name of a mp3 file?
    The reason why i am asking is because i have lumped a whole lot of music files into one artist and album folder (it's sorat a mix) and they do not arrange themselves in alphabetical order per the name i give them, rather it goes by the tag name...
    ...can i change this? Thanks for your time.

    I tried using the creative mediasource organizer, and the "help" said to:
    To edit information about a track
    If you are not already in Creative MediaSource Organizer, click the <SPAN>Player/Organizer View button.
    </LI>
    In the <SPAN>Content<SPAN> window, locate the track you want to edit, and right-click it.
    </LI>
    Select the <SPAN>Properties option.
    </LI>
    Click the <SPAN>Tag Information<SPAN> tab.
    </LI>
    Enter the new information.
    </LI>
    Click the <SPAN>OK button. The track's information is changed.
    </LI>
    </LI>
    anyways....when i click on properties there is no "tag information" tab? anyone know how to use the program to change the tag info?
    </LI>

  • Cant change ID3 tags [on certain files]

    Some files I have, after making changes to their tags in iTunes, revert to their original tag info upon playing. Very annoying [especially when/if file contains faulty info].
    I have gone as far as changing the file info in the Finder, with no success. In fact, I can picture scenarios where this would result in a 'missing' file in iTunes. Even if this method were to work, I would only classify it as a workaround - not a soultion, by any means.
    All apologies if this issue has been addressed already. I am running iTunes 4.9, but the problem was first noticed under 4.7 [i believe].
    Thanks in advance,
    -af-

    I had the same problem with some mp3 files that I downloaded. Couldn't change the tag names, and couldn't add album artwork.
    From another post on a seperate topic in relation to the ID3 tags, I think I found an answer that worked for me.
    Select the songs in iTunes, go to Advanced and then "Convert ID3 Tags..."
    Then put a check in the ID3 tag version and make sure that the version is "none". Click OK to change the ID3 tags.
    This clears the ID3 version number, but keeps the data. Then go back through the same process but change the ID3 tag version to the original ID3 tag version (2.2, 2,3, etc).
    As I said, this worked for me, so I hope this works for you.

  • Problem: Not able to change Signature field reason code Dynamically using signatureSetSeedValue

    Problem: Not able to change Signature Settings Dynamically.  
    What I want: Need to change the Signature Field Reason code Dynamically upon selecting Radio Button.
    Here is My Code:  
    var mydoc = xfa.resolveNode("FormData.P3_443.signature[2].ePadSignatureField3");
    mydoc.signatureSetSeedValue(
    reasons: ["Advisor"],
    flags: 8
    Error Message:
    TypeError: mydoc.signatureSetSeedValue is not a function
    9:XFA:FormData[0]:P3_443[0]:signature[2]:ePadSignatureField3[0]:validate'
       Source Code: Acrobat Code for Signature.
       // Obtain the signature field object:
    var f = this.getField("mySigFieldName");
    f.signatureSetSeedValue(
    { reasons: ["This is a reason", "This is a better reason"],
    flags: 8

    Problem: Not able to change Signature Settings Dynamically.  
    What I want: Need to change the Signature Field Reason code Dynamically upon selecting Radio Button.
    Here is My Code:  
    var mydoc = xfa.resolveNode("FormData.P3_443.signature[2].ePadSignatureField3");
    mydoc.signatureSetSeedValue(
    reasons: ["Advisor"],
    flags: 8
    Error Message:
    TypeError: mydoc.signatureSetSeedValue is not a function
    9:XFA:FormData[0]:P3_443[0]:signature[2]:ePadSignatureField3[0]:validate'
       Source Code: Acrobat Code for Signature.
       // Obtain the signature field object:
    var f = this.getField("mySigFieldName");
    f.signatureSetSeedValue(
    { reasons: ["This is a reason", "This is a better reason"],
    flags: 8

  • Can't add signature or change signatures in Mail

    I hadn't changed signatures in a very long time so I don't know when this started but...
    I tried to add a signature and it will not show up in the pop-up menu in the New Message "signature" menu.
    Also I can not edit previously created signatures.
    I realize that trashing my mail preference file may correct this but it will, I assume, delete all of my signatures and probably reset many other things.
    Any ideas on how I can fix this with the minimum amount of rebuilding of preferences?
    Thanks.
    RonL

    How did you fix it? I expierience the same problem on my old Panther (10.3.9). Whenever I open my 'mail preferences'window, the only tab I can see and change is 'Accounts'. The tabs 'General, RSS, Fonts&Colors, Viewing, Composing, Signatures and Rules' all disappeared.

  • How to change signature details in Technet Forum

    I know To change the signature in each forum post we need to perform changes in My Settings
    Unfortunately, I'm not able to find My Settings in any of the forum pages :(
    I've already checked 
    http://social.technet.microsoft.com/Forums/en-US/67879ae0-3ff8-480a-ad2f-cd4888658d0d/changing-signatures-in-forum-posts?forum=reportabug
    Anoop C Nair -
    @anoopmannur :: MY Site:
     www.AnoopCNair.com ::
    FaceBook:
     ConfigMgr(SCCM) Page ::
    Linkedin:
     Linkedin<

    Still Struggling to get the signature changed. 
    When I click on save changes button , I'm getting the following error. I'm getting this error since last 4 or 5 days 
    Resources
    for IT Professionals >
    Forums
    home > 
    Internal Server Error
    Sorry, We were unable to service your request. Please try again later.
    For the latest headlines and see what's new, visit the TechNet
    home page.
    Check out the various Tech
    Centers where you can find the latest product information, technical resources and community offerings.
    Visit the TechNet Library for
    the latest technical articles, reference documentation, downloads and more.
    Browse to TechNet Forums to
    get fast answers for technical questions or use the search option below to find out other relevant resources.
    Anoop C Nair -
    @anoopmannur :: MY Site:
     www.AnoopCNair.com ::
    FaceBook:
     ConfigMgr(SCCM) Page ::
    Linkedin:
     Linkedin<

  • Can a Tag name be changed?

    Hi
    I have this backup, USQ4_HOT_0226_2125, and would like to change the TAG to USQ4_HOT_KEEP_UNTIL_JUNE01
    RMAN> LIST BACKUP SUMMARY;
    2>
    List of Backups
    ===============
    Key TY LV S Device Type Completion Time #Pieces #Copies Compressed Tag
    7932 B F A SBT_TAPE 26-FEB-09 1 1 YES USQ4_HOT_0226_2125
    7933 B F A SBT_TAPE 26-FEB-09 1 1 YES USQ4_HOT_0226_2125
    7934 B F A SBT_TAPE 26-FEB-09 1 1 YES USQ4_HOT_0226_2125
    7935 B F A SBT_TAPE 26-FEB-09 1 1 YES USQ4_HOT_0226_2125
    7936 B F A SBT_TAPE 26-FEB-09 1 1 YES USQ4_HOT_0226_2125
    8195 B F A SBT_TAPE 26-FEB-09 1 1 NO USQ4_CONTROLFILE_0226_2125

    You cannot change an existing tag. Next time you do your backups choose the new name and you will see backups with the desired tag name.
    Werner

  • RMAN Tag name change

    Could backupset Tags name changed after backup has been taken.? I would like to re name some tags before marking them keep forever.

    Ok. thanks.
    I made some changes in my run script and it much better exept for control file backupset which gets generated with default tag name. Is any way I could specify tag name for control file backupset in my script
    Here is exampe:
    run
    BACKUP DATABASE TAG = FULL_HOT_BACKUP PLUS ARCHIVELOG DELETE INPUT tag FULL_HOT_BACKUP;
    DELETE NOPROMPT OBSOLETE;
    92266 B A A DISK 26-NOV-07 1 1 YES FULL_HOT_BACKUP
    92267 B F A DISK 26-NOV-07 1 1 YES FULL_HOT_BACKUP
    92268 B F A DISK 26-NOV-07 1 1 YES FULL_HOT_BACKUP
    92269 B F A DISK 26-NOV-07 1 1 YES FULL_HOT_BACKUP
    92270 B F A DISK 26-NOV-07 1 1 YES FULL_HOT_BACKUP
    92419 B A A DISK 26-NOV-07 1 1 YES FULL_HOT_BACKUP
    92465 B F A DISK 26-NOV-07 1 1 NO TAG2007126T141620

  • How can I change the brand name appearing on volume mixer?

    I tried changing the brand name of Mozilla Firefox. It changed the brand name which appears on the browser but it didn't changed the brand name appearing on volume mixer. So how can change that one too?

    then the signature will obviously be broken - i don't really know what backlash this will have, but it's definitely not worth the hassle (possibly windows giving error messages, anti-virus programs might report it as some threat and there might be problems with the firefox update mechanism, not to mention you'd have to repeat the procedure after every new update).

  • Changing ID3 tags and replacing tra

    I'm playing with my new Xtra and enjoying it. I will want to jigger many of the tags to organize the genres and artists better.
    ) The software stored the albums (as I requested) under Artist/Album. If I shift an album under a different artist name, I assume it will not automatically change the tags for the artist. (For instance, I have a few "Elvis Costello" and a few "Elvis Costello and the Imposters"... I want them all under the same artist name).
    2) Can I change the basic tags (Artist, Album, Genre and even Track #) using Create MediaSource Organizer, or should I download a decent/free ID3 tag program recommended on various guru FAQs?
    3) Here's my real question: Once I alter the tag on a track I've already loaded onto the player, I will want to replace it with the updated tags. If I re-transfer, will it overlay the tracks with the updated ones -- or will it create duplicates? Do I need to delete the album or tracks from my player before sending them back over?
    Thanks
    Michael

    zmulls wrote:I figured the PC was easier to change tags. Just for the typing (!)
    Well you can only edit tags using the PC. I meant with respect to which data source you use, the player itself (when connected to the PC) or the files on the PC's hard dri've.
    The "move" would be just taking a subfolder ("album") and moving under a different "artist" folder -- in Explorer. I figured also that I'd still have to change the tags (the ripping program reads the tags and creates the directories, but I assumed the intelligence doesn't go another way).
    Ah right. Yes, you have to change the tags themselves. It doesn't automatically realise the folder has changed, although you can get many programs which will use folder and filename data to generate the tag.
    So I should grab a tagging program, and plan to "Delete From Player" and "Re-Transfer From PC." Not as bad as it sounds, as I can delete whole albums at once from the Player.
    It's certainly the method I use. It really depends on what approach suits you.
    I saw the list of tag programs on your FAQ -- are the "free" ones good enough? Is there a real advantage in the shareware or paid programs (other than the one you cite on Nomadsync).
    I've never bought a tag editing program, and have used 2 or 3. I prefer overall though, but some don't like the UI. Best to check some out.
    Nomadsync is listed in the programs to copy files. Remember that Nomadsync is not a tag editor, it's a program for copying files.

  • How can I change the file name of an mp3 file to it's ID3 name?

    I prefer to alter the ID3 names of my music files to include: ARTIST - Track number - Tune Name. I do this in iTunes, by individually selecting each file, and Apple+I, then change the INFO/NAME tag.
    But the same file has a file name and an ID3 name then.
    Is there any script or APP that will allow me to BATCH convert all music file names to the ID3 name?

    > Do you have iTunes prefs > Advanced - Copy files to iTunes
    > media folder when adding to library checked?
    > (With above checked, when you add to iTunes, it makes a copy
    > of teh file in the iTunes folder and iTunes does not do anything
    >further with the original)
    Yes, how do you think they get there if I double click them in finder and list themselves and start playing in iTunes?
    > You are looking at the file in iTunes not the original file
    > (which is not in iTunes) correct?
    I have talked about both if you will read the thread.
    > In iTunes, right click Show in Finder
    Read the thread carefully, you are missing something.
    > Uncheck Keep iTunes media folder organized,
    > then click OK. Then go back and recheck it.
    Has no effect whatsoever.

Maybe you are looking for