JAAS configuration save to file

Hi,
I have a configuration file and with java Configuration object I read the jaas configuratino from the module.
Then I change the configuration in program and now I want to save It back to the file. Is there any possibility in java to make this easy.
I hope somebody can help me.
Thanks, Christoph

it is true that the Configuration API does not support "write" semantics. in other words, there are no methods to "set" or "create" entries programmatically. it follows, then, that there is no standard method to "save" newly created entries to the back-end data store.
the Configuration class is about accessing a given login configuration - it doesn't get into the business of managing a configuration.
having said that, the developer has the ability to design custom implementations that support programmatic configuration management (as you seem to have done). you would simply need to design a way to create/delete entries, and also a way to save or flush the changes to the back-end store.
if you want to write out entries that conform to the default file-based syntax, it should not be very difficult (the syntax is fairly simple and straightforward). but it is true that there is no existing code you can re-use that would do this for you.

Similar Messages

  • In TextEdit I would like to save my files as rtf and NOT rtfd. TextEdit will sometimes let me choose, but most of the time the choice is not available and the file is automatically saved as rtfd. How can TextEdit be configured to only save in rtf ?

    Hello,
    I use TextEdit quite a lot. The problem I have encountered is that TextEdit will many times save plain text as rtfd files and not rtf. Does anybody know how I should proceed with TextEdit in order to save a file only as rtf and not rtfd? (rich text with attachments). As rtfd files, the files are impossible to open elsewhere and will also not load up properly as an email attachment. TY

    Hello,
    I use TextEdit quite a lot. The problem I have encountered is that TextEdit will many times save plain text as rtfd files and not rtf. Does anybody know how I should proceed with TextEdit in order to save a file only as rtf and not rtfd? (rich text with attachments). As rtfd files, the files are impossible to open elsewhere and will also not load up properly as an email attachment. TY

  • URGENT--Need to supress "Do you want to Open or save this file" for (CSV AND DOC FILES) in IE 8, IE 9 on Win XP and Win 7

    Hi 
    In our Task in Salesforce we generate one CSV file and one doc file after one button click on salesforce screen. we need to download these two documents without the popup message "Do you want to Open or save this file"
    Pls suggest Registry Edit Option Or any IE browser configuration or any
    code to get rid of this popup as this is very critical for our Task. 
    Thanks
    Kartik

    Thanks Alex... I saw this in another Forum and could you pls let me know if this works...that is there is no prompt on CSV download
    Begin in: HKEY_LOCAL_MACHINE - to change settings for all users
    HKEY_CURRENT_USER- to change settings for the current user
    Then browse to Software->Microsoft->Internet Explorer->Main->FeatureControl->Feature_Restrict_File_Download
    And then set the Value iexplore.exe to 0. If it doesn't exist: Create it (DWORD). 
    Thanks
    Kartik

  • Open and Save Excel Files

    Hi All,
    I need code of How to open and save excel file in local system in Oracle forms.
    With Regards,
    Chandra Shekhar

    Hello Chandra,
    Webutil can be used to achieve this functionality.
    STEPS TO FOLLOW
    ================
    1. Install and configure Webutil following instructions in the webutil manual
    and the readme file.
    2. Create a form with a block Eg. DEPT
    3. Create a button, and in that button put the following code -
    DECLARE
    application Client_OLE2.Obj_Type;
    workbooks Client_OLE2.Obj_Type;
    workbook Client_OLE2.Obj_Type;
    worksheets Client_OLE2.Obj_Type;
    worksheet Client_OLE2.Obj_Type;
    args Client_OLE2.List_Type;
    cell ole2.Obj_Type;
    j INTEGER;
    k INTEGER;
    BEGIN
    application := Client_OLE2.create_obj('Excel.Application');
    workbooks := Client_OLE2.Get_Obj_Property(application, 'Workbooks');
    workbook := Client_OLE2.Invoke_Obj(workbooks, 'Add');
    worksheets := Client_OLE2.Get_Obj_Property(workbook, 'Worksheets');
    worksheet := Client_OLE2.Invoke_Obj(worksheets, 'Add');
    go_block('dept');
    first_record;
    j:=1;
    k:=1;
    while :system.last_record = 'FALSE'
    loop
    for k in 1..3 /* DEPT has 3 columns */
    loop
    If not name_in(:system.cursor_item) is NULL Then
    args:=Client_OLE2.create_arglist;
    Client_OLE2.add_arg(args, j);
    Client_OLE2.add_arg(args, k);
    cell:=Client_OLE2.get_obj_property(worksheet, 'Cells', args);
    Client_OLE2.destroy_arglist(args);
    Client_OLE2.set_property(cell, 'Value', name_in(:system.cursor_item));
    Client_OLE2.release_obj(cell);
    End If;
    next_item;
    end loop;
    j:=j+1;
    next_record;
    end loop;
    /* For the last record */
    for k in 1..3
    loop
    If not name_in(:system.cursor_item) is NULL Then
    args:=Client_OLE2.create_arglist;
    Client_OLE2.add_arg(args, j);
    Client_OLE2.add_arg(args, k);
    cell:=Client_OLE2.get_obj_property(worksheet, 'Cells', args);
    Client_OLE2.destroy_arglist(args);
    Client_OLE2.set_property(cell, 'Value', name_in(:system.cursor_item));
    Client_OLE2.release_obj(cell);
    End If;
    next_item;
    end loop;
    Client_OLE2.Release_Obj(worksheet);
    Client_OLE2.Release_Obj(worksheets);
    /* Save the Excel file created */
    args := Client_OLE2.Create_Arglist;
    Client_OLE2.Add_Arg(args,'d:\test.xls');
    Client_OLE2.Invoke(workbook, 'SaveAs', args);
    Client_OLE2.Destroy_Arglist(args);
    /* release workbook */
    Client_OLE2.Release_Obj(workbook);
    Client_OLE2.Release_Obj(workbooks);
    /* Release application */
    Client_OLE2.Invoke(application, 'Quit');
    Client_OLE2.Release_Obj(application);
    END;
    4. Save the form and compile it.
    5. Run the form.
    6. Execute the query in the block.
    7. Click on the button.
    8. An excel file will be created in the d:\ directory by the name test.xls.
    Kind regards,
    Alex
    If someone's answer is helpful or correct please mark it accordingly.

  • How to change the path for a file download? Sometimes, I want to save a file in a specific folder in my hard disc and I don't know how to do it. Thanks.

    There is a default folder for the download of files from the internet ("Descargas" or "Downloads"). But, what can I do if I wish to save the file in another location of the hard disk?
    Thank you.

    Use about:config and filter on browser.download, you'll see them
    '''More information on configuration variables''' available in
    [http://kb.mozillazine.org/About:config_entries about:config (entries)] and for users not familiar with the process there is [http://kb.mozillazine.org/About:config about:config (How to change)]

  • How to save jpeg files in iPhoto

    I would like to be able to make changes in Photoshop and then be able quickly save a jpeg file in my iPhoto library (Version 9). From what I could deduce, the only way to do this would be to save the file to my hardrive, then go to iPhoto, choose the import to library under the File menu and then locate the file I want to import. Is that really the quickest and easiest way to do this? Or is it possible to save the file directly to the iPhoto library from within the Photoshop program?

    Using Photoshop or Photoshop Elements as Your Editor of Choice in iPhoto.
    1 - select Photoshop or Photoshop Elememts as your editor of choice in iPhoto's General Preference Section's under the "Edit photo:" menu.
    2 - double click on the thumbnail in iPhoto to open it in Photoshop.  When you're finished editing click on the Save button. If you immediately get the JPEG Options window make your selection (Baseline standard seems to be the most compatible jpeg format) and click on the OK button. Your done. 
    3 - however, if you get the navigation window
    that indicates that  PS wants to save it as a PS formatted file.  You'll need to either select JPEG from the menu and save (top image) or click on the desktop in the Navigation window (bottom image) and save it to the desktop for importing as a new photo.
    This method will let iPhoto know that the photo has been editied and will update the thumbnail file to reflect the edit..
    NOTE: With Photoshop Elements  the Saving File preferences should be configured as shown:
    I also suggest the Maximize PSD File Compatabilty be set to Always.  In PSE’s General preference pane set the Color Picker to Apple as shown:
    Note 1: screenshots are from PSE 10
    Note:  to switch between iPhoto and PS or PSE as the editor of choice Control (right)-click on the thumbnail and select either Edit in iPhoto or Edit in External Editor from the contextual menu. If you use iPhoto to edit more than PSE re-select iPhoto in the iPhoto General preference pane. Then iPhoto will be the default editor and you can use the contextual menu to select PSE for your editor when desired.
    OT

  • Script to create directory based on current file name and then save the file in that directory

    Hi all,
    I have a need save all my projects in a directory using the name of the main image I am working on.
    Manually these are the steps I used:
    Save As.
    Copy ( press command-c <== the filename is highlighted by default so all I have to do is )
    New Folder ( press the new folder button. Brings up a dialog box)
    Paste ( press command-v. <== Pastes the file name into the "New Folder" dialog box.)
    Save ( press thre save button. Saves the files into the new folder )
    Save As.
    Change format to JPG
    Save
    Change image quality to 12
    I want to assign these actions to a key
    Recording these steps and playing them back does not give me the results I need, snce the original name is hard-coded in the actionlist that was recorded
    What should I be doing instead ?
    Thanks in advance !

    You don’t mention which format the original file is (and figuring that and its current settings out seems too much of a hassle to me) so this would only save the jpgs into the folder (and create one if it does not exist).
    If you want to give it a try, paste the following text into a new file in ExtendScript Toolkit (part of Photoshop’s installation, Applications/Utilities/Adobe Utilities/ExtendScript Toolkit CS4 or /Applications/Utilities/Adobe Utilities-CS5/ExtendScript Toolkit CS5) and save it as a jsx-file into Photoshop’s Presets/Scripts-folder.
    After restarting Photoshop the Script should be available under File > Scripts and can be assigned a Keyboard Shortcut directly, recorded into an Action, (in CS4 and CS5) be used in a Configurator-Panel or started from ExtendScript Toolkit directly.
    // saves jpg into folder of file’s name next to file;
    // be advised: this  overwrites existing jpgs of the same name without prompting;
    // thanks to xbytor;
    // 2012, use it at your own risk;
    #target photoshop;
    if (app.documents.length > 0) {
    var thedoc = app.activeDocument;
    // getting the name and location;
    var docName = thedoc.name;
    if (docName.indexOf(".") != -1) {var basename = docName.match(/(.*)\.[^\.]+$/)[1]}
    else {var basename = docName};
    // getting the location, if unsaved save to desktop;
    try {var docPath = thedoc.path}
    catch (e) {var docPath = "~/Desktop"};
    // create folder if it does not exist;
    var folderString = docPath+"/"+basename;
    if (Folder(folderString).exists == false) {new Folder(folderString).create()};
    // jpg options;
    var jpegOptions = new JPEGSaveOptions();
    jpegOptions.quality = 12;
    jpegOptions.embedColorProfile = true;
    jpegOptions.matte = MatteType.NONE;
    //save jpg as a copy:
    thedoc.saveAs((new File(folderString+"/"+basename+".jpg")),jpegOptions,true);

  • Whenever a user opens a document shared our SharePoint intranet he is prompted if he wants to open or save the file

    We have a SharePoint intranet we use to share documents.  I have a user that every time he tries to open an Office document from this site, he receives the prompt: "Do you want to Open or Save this file?".  If he opens the file and updates it,
    the changes are saved locally on his computer and not onto the website.
    The issue doesn't seem to be the site or his permissions because if he tries to do this using my computer instead, he is able to open the file, update it and the updates are saved directly onto the website.  It only happens from this specific PC.
    The PC is running Win7, IE9 and Office 2010 (same as mine).  I also compared the configuration for the different security zones between the 2 PCs and they look the same (internet, intranet and trusted sites).  I'm thinking there must be a setting
    configured differently somewhere in his IE but I'm not sure what else could be causing his computer to behave differently than mine when performing this task.  Any advice would be appreciated...

    Hi,
    Did you mean that you wanted to pop up the dialog of "You are about to open: <Name:file name><From:web site>,How would you like to open this file:Read Only, Edit", update the file and save it back to the current SharePoint library ?
    Please check two points below,
    Check and make sure add-on "SharePoint OpenDocuments Class" is enabled via IE9(32-bit version) Tools->Manage add-ons from your user's PC. if it doesn't appear, please repair or change the Office 2010 from Control
    Panel, make sure to install Microsoft SharePoint Foundation Support within
    Office Tools per this
    article.
    If add-on "SharePoint OpenDocuments Class" has beed enabled, you need to check and disable the the Word
    Protected View per this
    article, then check result again.
    Thanks
    Daniel Yang
    TechNet Community Support

  • I started to learn HTML, and I'm using text edit and everything is going fine, when I save the file with a .html extension and open it with safari I only view the code and not the webpage that was supposed to be created.

    I started to learn HTML, and I'm using text edit and everything is going fine, when I save the file with a .html extension and open it with safari I only view the code and not the webpage that was supposed to be created.

    That is because you don't have a web server configured and running to serve the html page. In order to see the page in a browser you need to access it using a url similar to http://localhost/~yourUserName if you are serving the page from your user account.
    Prior to Mountain Lion you could go into web sharing and turn on the web server. With Mountain Lion there is no option, other than using terminal, to turn on the web server. The web sharing menu item has been removed in Mountain Lion. Apache is still on your computer but it will take a little searching these forums or the Internet to find how to turn it on.
    If you want a graphic user interface to turn on/off the Apache server you could download and install a server application like xampp, http://www.apachefriends.org/en/xampp.html. I use this and it works well.

  • Intel OS 10.5 Illustrator CS5 crash during "save as" file replacement on network volume

    I am running a recently reinstalled copy of CS5 on a os 10.5 Intel  Mac pro as part of the CS5 design Premium edition. Every time I try to save over a file on a 10.5 fileserver as a  "save as" to replace an exsisting document on the server, it crashes  Illistrator. Hard. I get the spinning ball and have to force quit the  application. This action tends to cause a volume bit map error on the  hard drive. I have swapped the drive for a new one and the result is the  same so I know it is not a failing hard drive. I have come  accross a similiar issue on the forum and have yanked the pref file  mentioned in the post, but no luck so far. If anyone has an idea, I am  all ears. Thanks.
    Previous thread with simialar issues.
    http://forums.adobe.com/thread/318379

    Adobe has always stated that saving to and opening from a networked file server is not supported.
    There are litterally thousands of configurations out there and it's not feasible for Adobe to test every single one of them.
    If you save the file to a local drive do you have problems?

  • PDF print. where save the file?

    Hello,
    on my system (SPAD) is defined ZPDF2 a printer for printing in PDF.
    I want to know where to save the PDF? In a specific file system? How can I see this?
    Best regards
    Silvio

    Hi,
    It is not cleared what is your exact goal ?
    see that the printing is completed but I do not know if SAP has created a file and where to put it
    By default SAP saves the documents in users home directory "C:\Documents and Settings\<USER_NAME>\SapWorkDir".
    Is there a log that tells me what happens when I print a SAP page?
    in SP01/SP02 or SPAD you can see the status of the spool job (success or failed) or its attribute. But it will not tell you where you saved the file because this activity will not come under SAP's control.
    If I am not mistaking SAP generates spool request as per the configured spool device in SPAD. Once you fire the print job it depends on operating system's installed printer (configuration) what to do with that request. Means whether to print as PDF document or send to normal print device.
    If you want more control over print job, you can configure "Access Method" as "G: Frontend printer with Control tech." and set "Host Printer = _DEFAULT". So it will pop-up Operating system printer selection dialog box.
    I hope, it will cleare your doubts.
    One more thing:
    You have 2 methods to get it done...
    A) In case of standard transactions or report, use method as I said in previous post.
    B) If it is custom development, you can take ABAPers help to do the same. below are the steps for the same.
    Basic Steps .
    1) Generate the classical Report output .
    2) Create a Spool Request .
    3) Search  the Spool Request .
    4) Submit the Spool Request  for Pdf  Creation .
    5) Download the Pdf Output in Presentation server  or Application Server .
    Use the Standard Function Modules 'CONVERT_ABAPSPOOLJOB_2_PDF' and 'GUI_DOWNLOAD'
    It will give you a freedom where to save the file..
    Regards.
    Rajesh Narkhede

  • Change "save as" file format list

    How do I change the file format order that is listed in the "save as" file format window? Instead of having "Photoshop" listed as the default file, I'd like to have JPEG at the top, then TIFF, PSD, etc. I have to constantly scroll down the list to find JPEG.

    c.pfaffenbichler wrote:
    I know of no way to change that order.
    Edit: Actually one could probably Script a dialog with a file-format-dropdown-list of one’s own devising, but that hardly seems worth the trouble.
    But with Configurator and some Scripting you can make a save-as-jpg (and save-as-psd and whatever) into a one-click operation.
    See that is exactly what I think is wrong with Configurator it allows you to some cosmetics but no real customizations there are lots of formats I do not need ever. There are things I would rather have a menu item than as a panel selection and there things I would rather have that only do a coupe of options by default but you never get the opportunity of doing these things with this program.

  • [CS3] can't open or save bmp file

    Help, i can't open or save bmp file in my CS3 extended. It is saying that is impossibile operate the request cause the file type is wrong.
    That's unbelievable !!!
    Even if i try to save a total new and blank work does not allow me save in bmp ( the option is even not shown !!)
    I guess some update has screwed up the configuration but i don't now who to solve it. i'm going MAD !!!!
    Thanks for your help, i'll appreciate it
    Andrea ( from Milan )

    I found the Solution. Please read the entire post.
    Same Problem, I can't save the image. I just made a new desktop wallpaper, and I go to Save As.. and it does not show ANY image formats.
    -I can choose to save as..
    --Photoshop
    --Cineon
    --D3D/DDS
    --Dicom
    --Large Document Format
    --Photoshop PDF
    --Photoshop Raw
    --PNG
    --TIFF
    That is all there is in the format drop down menu.
    Image is 1024x768, Locked background layer, 16 bit colour.
    I recently installed Xp Service pack 3, and as far as I know, I could save them before that.
    Any help would be greatly appreciated, so please reply to this or send me an email at ---(Email Addres Deleted)---
    *EDIT*
    Turns out that the image needs to be 8 Bits/Channel. To do this, select the image and follow these menu instructions..
    -Image
    --Mode
    ---Select 8 Bits/Channel

  • Batch processing: save processed file with same name to different location without moving the original

    Hi, I would like to denoise Voice Over files with help of Auditions Batch Process. However, I have to save the files with the same name as the original, so that I can simply relink them in Premiere. Since I do want to keep the originals, I would like to save the processed files to a different location.
    Unfortunately, Batch Processor adds " Copy" to the processed files and moves the originals along with the processed files to the new folder (causing Premiere to loose the original files).
    Can I achieve my goal with Batch Processor, and how would I have to configure it?
    Kind regards,
    Andreas

    Which version of Audition are you using? The latest ones allow you to specify where the batched files are saved and also if any Prefix or Postfix are added to the file name. These are all under Export Settings in the Batch Process pane. However you must have the Export box ticked to give you access to the settings.

  • Unable to save edited files

    Hello Group,
    Has anyone experienced this problem?? We have had this
    problem 2 times, and it seems related to after a Windows automatic
    update as run. Platform is an HP laptop, running windows XP.
    We have several *.cp files. We open one file, and delete an
    audio track from a slide, and then attempt to save the edited file.
    The edited file will not save. For some reason Captivate
    still sees the "different" file name as the same name as previous
    file. The edit is not saved. We even created a new folder on the
    C:\ drive, and copy a file in, open it, or attempt to open an
    edited file that somehow got saved, and then Captivate say "this
    file is in a format that captivate does not recogize"
    Has anyone else seen something like this?
    captivate seems to work ok on my desktop pc, but not the
    laptop??? Perhaps it is some sort of problem with the laptop
    Thanks,
    eholz1

    I was wondering if either of you have had any luck nailing
    down this problem. We are experiencing it on one of our laptops as
    well and I have been baffled by it.
    The laptop is a Dell with XP SP2, it was running Captivate
    1.0.1 for a while and was upgrade to Captivate 2.0 without removing
    Captivate 1. This configuration has worked for months, but suddenly
    I can't save anything. If you hit save the hourglass pops up and
    goes away with no error messages, but the * in the titlebar
    indicating unsaved changes is still there and when I try to close
    it asks to save. If I say no or cancel it acts properly, but if I
    hit yes to save it, is just goes back to Captivate and doesn't
    close or save. Save As will save a file, but it is usually corrupt
    when I try to open it later, and the * still doesn't go away.
    I have gone so far as to run ProcessMonitor from Sysinternals
    but it doesn't show any errors. It doesn't even show that it is
    trying to save it. If there are any patches or updates for
    Captivate 2 I have been unable to find them on Adobe's site.

Maybe you are looking for

  • How can I make playlists from podcasts in iTunes 11.1.3?

    I used to be able to highlight podcasts and create playlists from them with a right-click. In version 11.1.3 of iTunes, that option is no longer available. Does anyone know of another way to create playlists from podcasts now? Thanks in advance, Mizm

  • Error in smartform when printing multiple pages

    Hi, I m using a smartform which have two pages in it, i m able to save and activate it without any error message and when i run the function module generated to chk my smartform it runs fine and diplays two pages i m using. but as i m attaching this

  • My G5 will no longer mount any external hard drive

    I am running a G5 Power PC on OS10.4 and am recently unable to mount any of my 4 external hard drives via firewire 400, 800, usb on either front or rear buses. I have tried multiple cables, power supplies, and have run disk utility but still cannot s

  • FiOS TV APP not supported on Samsung UN60H6350AFXZA LED TV

    Hi, I recently bought a Samsung 60 inch LED Smart TV : UN60H6350AFXZA. I tried to browse for Verizon FiOS TV APP on the Samsung Smart Hub and couldn't find it. I spoke with their customer care and they are saying this TV is not supported. I was shock

  • Request.setHeader in servlet filter

    Hi there, I am working on servlet filter to filter HttpServletRequest before sending it to the original servlet. The original servlet expects some content posted in the body of HttpServletRequest object. In my servlet filter, I need to modify this co