How do I update LoginModule's shared state (wildcards)?

In the API definition for interface javax.security.auth.spi.LoginModule, the prototype for initialize is as follows:
public void initialize(Subject subject, CallbackHandler ch, Map<String, ?> sharedState, Map<String,?> options);I can believe that 'options' is read-only but sharedState is used for passing data such as passwords along to stacked modules -- other login modules that might use the same credentials so you don't have to ask the user for the same thing twice. So my login module needs to write to it.
I'm kinda shaky on wildcards but I can't think of a way to put any object into sharedState since I have no idea what type it might be. This looks like an example of a "partially immutable" collection as referred to here: http://today.java.net/pub/a/today/2004/01/15/wildcards.html?page=2
Any way to do it without deleting the type information from the method signature (and thereby getting unchecked warnings)?

What have you tried?
You should be able to create a Map of String to
'anything' and pass it to either of those
parameters.Let me clarify: the LoginModule is an interface that is essentially a set of callbacks called from within Sun library code. So the actual definition of the Map<String,?> isn't under my control! It's passed to me.
When you use JAAS, you create a new javax.security.auth.login.LoginContext (the library object) and supply it with the name of your LoginModule implementation. LoginContext creates the maps and then instantiates and calls into your LoginModule.
I have tried various incantations of assigning it to my own Map<String,(something here)>. But this seems wrongheaded because based on the method parameters alone I'll never know what value type is stored in the map. The only thing that works is to just define my initialize method with plain Map parameters and live with unchecked warnings.

Similar Messages

  • Family sharing. i have set my wife up on family sharing and each time we try to download a book or an app, we are requested that i update the payment details. I have done this and we still cannot share.. what do i do or how do i update the payment

    family sharing. i have set my wife up on family sharing and each time we try to download a book or an app, we are requested that i update the payment details. I have done this and we still cannot share.. what do i do or how do i update the payment details to enable my wife to download

    Drrhythm2 wrote:
    What's the best solution for this? I
    Copy the entire /Music/iTunes/ folder from her old compouter to /Music/ in her account on this new computer.

  • How to restrict update to a document in state release to the contribution g

    How to restrict update to a document in state release to the contribution group.
    Hi I’m working with UCM 10g and I want to know if it is possible to restrict the update over a document that is on state release for the group of users that made the check in of the document ?
    thanks

    Yes, it is, but IMHO in a rather complicated way:
    - you could change the security settings (security group, or more likely, accounts) during the life cycle, or
    - you could implement collaboration management, and change security settings via ACLs
    Alternatively, depending on what you mean by "updating" documents you could also:
    - check-out the document by a system account (if you want to prevent your users to check-in a new version)
    - modify the GUI so that Update (metadata) action is not available to users (in theory, they could still access it via a direct service call) by a custom component
    - introduce a Java event filter (enhancing the UPDATE service) where you will implement whatever logic you want
    I would probably opt for the last options as it seems to me to be the cleanest solution (but yes, it requires some coding).

  • HT5824 my contact list does not update to its current state. After I sync to Itunes or after I back up to I cloud  Also I did a doccuments and data restore and it still didnt change. How do I fix this?

    My contact list does not update to its current state after I sync it to itunes or back it up to icloud  I did a documents and data reset and the contact list still didnt change.. How do I fix this?

    Welcome to the Apple Community.
    First check that all your settings are correct, that contact syncing is checked on all devices (system preferences > iCloud on a mac and settings > iCloud on a iPhone, iPad or iPod).
    Make sure the contacts you are adding are added to your 'iCloud' group and not an 'On My Mac', 'On My Phone' or other non iCloud group (you can do this by checking in groups), non iCloud contacts will not sync.
    If you are sure that everything is set up correctly and your contacts are in the iCloud group, you might try unchecking contact syncing in the iCloud settings, restarting your device and then re-enabling contact syncing.

  • Once ipad 1 restored to out of box state how do you update ioS

    Got new iPad Air and wanted to give original iPad to my mom, so restored the iPad to its out of box state.  However, now when she goes to set up the iPad as hers and update the software, it says the software is up-to-date (at ioS 5).  How does she update?

    Because Apps get updated all the time. If you had already downloaded a prior version of the App then that's what you were using and not the updated version.
    Your mom should still be able to get a version of the App for the older iOS version though.
    App Store: Install the latest compatible version of an app
    http://support.apple.com/kb/ht5919
    You may need to download the newest version to a compatible device or a computer running itunes so it gets registered to the Apple ID she is using now and can be downloaded then form the Purchased tab in the App Store App.

  • How to I update when a pop up window states this: The operation couldn't be completed. (NSURLErrorDomain error -1012.)(-1012)

    How do I update my software when I go to the app store and press the update button and a pop-up window appears stating:
    The operation couldn’t be completed. (NSURLErrorDomain error -1012.)(-1012)
    I restarted my computer and it still appears
    Please help

    The SSL certificate for swscan.apple.com has expired. You need to wait for Apple to get it renewed.
    (107225)

  • Is it possible to update only the Shared Install component?

    We are running MDM 7.1 with all components at 7.1.06.211.  We opened an OSS ticket due to an issue with CCMS monitoring and SAP told us to upgrade the MDM Shared Install component to at least 7.1.06.230.  We want to use sapinst --> update to apply the patch but cannot find a way to select only the shared install component.  Is the correct procedure to:
    1. In sapinst on the "Update - MDM Instances" screen, select  "Update all MDM instances of the SAP system" (MDS00, MDIS01, MDSS02)
    ...and then...
    2. In sapinst on the "Update - Content Archives" screen, extract only the shared.sar archive and deselect the others (mds.sar, mdis.sar, mdss.sar).
    Will this procedure update the shared installation component only and not the others?  Is this possible?  If not, will all of the other components have to be updated even though SAP said to update only the shared installation component?
    We have searched OSS and SDN but cannot find a clear explanation of how this should work.  Note 1481741 states that all components within the same SP level (e.g. 7.1.06.xx) are compatible and recommends upgrading only the component affected by the fix, which is what we want to do.
    Any help will be appreciated.
    Thanks and regards,
    WL

    Camoracer got it - my work computer has limited hardware/system resources. It can handle iTunes audio, but iTunes video slows it to a crawl and makes it so I can't get any work done. There are video podcasts I'd like to listen to at work, but can't for that reason. So I'd like to just play the audio stream from the podcast while disabling the video stream. The video portion isn't necessary anyway, it's usually just a talking head and not anymore informative than the audio portion alone.

  • HT201541 how do i update yo something newer?

    how do I update to something newer?

    Before embarking on a major OS upgrade, it would be wise, advisable and very prudent if you backup your current system to an external connected and Mac formatted Flash drive OR externally connected USB, Thunderbolt or FireWire 800, Mac formatted hard drive. Then, use either OS X Time Machine app to backup your entire system to the external drive OR purchase, install and use a data cloning app, like CarbonCopyCloner or SuperDuper, to make an exact and bootable copy (clone) of your entire Mac's internal hard drive. This step is really needed in case something goes wrong with the install of the new OS or you simply do not like the new OS, you have a very easy way/procedure to return your Mac to its former working state.
    Then, determine if your Mac meets ALL minimum system install requirements.
    Mac OS X v10.6 Snow Leopard system requirements
    Purchased Installer disc here.
    http://store.apple.com/us/product/MC573Z/A/mac-os-x-106-snow-leopard
    To install Snow Leopard for the first time, you must have a Mac with:
    An Intel processor
    An internal or external DVD drive, or DVD or CD Sharing
    At least 1 GB of RAM (additional RAM is recommended)
    A built-in display or a display connected to an Apple-supplied video card supported by your computer
    At least 5 GB of disk space available, or 7 GB of disk space if you install the developer tools.
    OS X 10.7 Lion system requirements
    Purchased emailed download code here.
    http://store.apple.com/us/product/D6106Z/A/os-x-lion
    To use OS X 10.7 Lion, make sure your computer has the following:
    An Intel Core 2 Duo, Core i3, Core i5, Core i7, or Xeon processor
    Mac OS X v10.6.6 or later to install via the Mac App Store (v10.6.8 recommended)
    7 GB of available disk space
    2 GB of RAM
    To install OS X  10.8 Mountain Lion, 10.9 Mavericks (free upgrade, but currently unavailable) or OS X 10.10 Yosemite (currently available free upgrade) you need one of these Macs:
    OS X 10.8 Mountain Lion purchased emailed download code here.
    http://store.apple.com/us/product/D6377Z/A/os-x-mountain-lion
    iMac (Mid-2007 or later)
    MacBook (13-inch Aluminum, Late 2008), (13-inch, Early 2009 or later)
    MacBook Pro (13-inch, Mid-2009 or later),
    MacBook Pro (15-inch or 17-inch, Mid/Late 2007 or later)
    MacBook Air (Late 2008 or later)
    Mac mini (Early 2009 or later)
    Mac Pro (Early 2008 or later)
    Xserve (Early 2009)
    Your Mac also needs:
    OS X Mountain Lion, Lion, or Snow Leopard v10.6.8 already installed
    2 GB or more of memory (I strongly advise, at least, 4 GBs of RAM or more)
    8 GB or more of available space
    Next,
    If you run any older Mac software from the earlier PowerPC Macs, then none of this software will work with the newer OS X versions (10.7 and onward). OS X Snow Leopard had a magical and invisible PowerPC emulation application, called Rosetta, that worked seamlessly in the background that still allowed older PowerPC coded software to still operate in a Intel CPU Mac.
    The use of Rosetta ended with OS X Snow Leopard as the Rosetta application was licensed to Apple, from a software company called Transitive, which got bought out, I believe, by IBM and Appe  could no longer secure their rights to continue to use Rosetta in later versions of OS X.
    So, you would need to check to see if you have software on your Mac that maybe older than, say, 2006 or older.
    Also, check for app compatibilty  here.
    http://roaringapps.com/
    If you have any commercial antivirus installed and/or hard drive cleaning apps installed on your Mac, like MacKeeper, CleanMyMac, TuneUpMyMac, MacCleanse, etc. now would be a good time to completely uninstall these apps by doing a Google search to learn how to properly uninstall these types of apps.
    These types of apps will only cause your Mac issues later after the install of the new OS X version and you will have to completely uninstall these types of apps later.
    Once you have determined all of this, you should be able to find the latest versions of OS X by clicking on the Mac App Store icon in the OS X Dock and then login to the Mac App Store using your Apple ID and password and if you purchased a download code, input that code.
    You can then begin the download and installation process of installing the newer versions of OS X from the Mac App Store.
    Good Luck!

  • HT2305 I am currently using a PC and it wont update which means the itunes I am using on my comuter is not up to date. How can I update it? do I have to uninstall and install it again?

    Today when I recieved my new phone I realized I needed to back the older one up so I tried and failed when my computer said that my Itunes was out of date so I went on itunes to find out that I have no idea how to just update itunes with out uninstalling it. does anyone know how?

    What do you mean it "won't update"?  That is extremely vague and frankly a useless statement.
    What happens when you try to update iTunes?  Any errors?
    There is no reason to uninstall.
    If you want, you can always download and install the latest version from Apple's website, that is essentially all the update does anyways.

  • How can I update my iPod on a new laptop?

    So, iOS 5 is finally out next week.
    I would like to upgrade to it, however since my old laptop is broke I use my mums laptop for iTunes. How can I update my system without apps beinf rid of? Last time I did it, my apps remaines intact, but I don't know how I did this.
    Any help?

    I have shared this thread with a number of users who have reported success with these steps.
    https://discussions.apple.com/thread/3305461
    This was posted for an iPad but it works the same way for an iPod. Important - and this has been covered - turn off auto sync in iTunes first, transfer your purchases next, back up your iPod after that.
    It is all covered in this thread - Demo &amp; King Penguin

  • How do I set up file sharing to keep my Quicken and Aperture files accessible and in synch across my network?

    I have a gigabyte ethernet network connecting my home and workshop.  I have an iMac (mid-2009 and late-2012) at each location running Mountain Lion and Windows 7 Home Premium under Parallels 8.  I want to be able to access my Quicken (for Windows), Office (for Mac) and photo (Aperture and iPhoto for Mac) files from either location and keep the files in synch.  How do I set up File Sharing to accomplish this and what process should I use when updating and saving changes?

    Use SugarSync.

  • How can I update a Resource User in a task

    Hi,
    I have a requirement that , I have to update some users in the LDAP resource in a task.
    Now I can get the list of users I want to update from the Resource in the task.
    But I dont know how do I update them.
    Can anyone help me to implement this?
    Thanks

    Log into shared services, expand User Directories > Native Directory > Right click users and select "New"
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How to get updated by count value in database ?

    hi all,
    I created jsp page iin which insert,update,delete , query and queryall Functionalities are working...
    I need following,
    whenever i update a record i should get updated by, updated time and updated count.. to be stored in database...
    i achieved to store updated by and updated time...
    please help me how to get updated count:
    when ever a record is updated for first time updated count=1,
    for second time it should be 2 for third time it should be 3 and so onnnn
    please help me how to write this kind of function and kind of code help will be appriciated....

    if you want "number of updates" performed on each row to be persistive, you should have designed the schema with an extra field which keeps number of updates performed.
    to generic solution sql statement should have been written like
    INSERT INTO table (a,b,c,update_count) VALUES (1,2,3,4)
      ON DUPLICATE KEY UPDATE update_count=update_count+1;in this case even a insert statement will work, you wouldn't had to write another update statement.
    or if u want to use update statement only
    have an extra column "update_count" do "update_count=update_count+1" on each update statement, set initial default value to 0;
    and if u want to know how many rows have been updated
    as BalusC wrote
    BalusC wrote:
    PreparedStatement#executeUpdate() returns an int which represents the amount of affected rows.

  • How Does One Update Lightroom to 4.3 if in this Creative Cloud Hell???

    Trying to update to 4.3 from 4.1  -- Checked the application manager - no updates to 4.1.  Went through the program - update lightroom - downloaded 4.3 and it installed as a separate program without deleting 4.1.  Now it asks for a serial number.  Creative cloud members don't get serial numbers.
    Here's my chat transcript with adobe's terrible, hellacious, moronic, and incompetent support person:
    Ashish: Hello! Welcome to Adobe Customer Service.
      Ashish: May I please have your email address registered with Adobe while I review your request?
      Laura: <Removed by Moderator>
      Ashish: Thank you for the information. Please allow me a moment while I locate your account.
      Ashish: 
      Laura: I have re-installed the application manager, but the lightroom available for download on the list is once again Lightroom 4.1
      Laura: Is there a proper technique to update?
      Ashish: Please provide me the serial number of your product.
      Laura: How do I get a serial number????
      Laura: I joined creative cloud and no serial numbers are provided.
      Laura: If I had a serial number, I wouldn't need help.
      Laura: In my account, there are no serial numbers.
      Laura: to download and install programs, I must use the application manager (apparently)
      Ashish: Please allow me moment.
      Laura: When I try to update Lightroom 4.1 to Lightroom 4.3, the program directs me to dowload lighroom 4.3
      Ashish: okay
      Laura: When I installed Lightroom 4.3 it does not uninstall 4.1, but is does install as a separate program and then asks me for a serial #.
      Ashish: You have install it directly you cant upgrade lightroom.
      Laura: Ok, but when I do - it asks me for a serial number.
      Laura: Adobe does not make serial numbers available to creative cloud members.
      Laura: I am in my account searching and cannot find serial numbers anywhere.
      Ashish: Yes
      Laura: So my question is - How is a member of creative cloud supposed to properly update applications.
      Laura: ????
      Laura: yes what?
      Ashish: I'll be right with you.
      Ashish: Sorry Laura, you have to contact on after 24 hours.our tool is not working.
      Ashish: We are facing technical problem is our tool today.
      Laura: What tool?  How do I properly update this program?  What is the procedure?  I should be able to do it without customer service.
      Ashish: You can contact after 24 hours.
      Ashish: We will resolve
      Laura: WHAT IS THE NORMAL PROCEDURE TO UPDATE PROGRAMS?
      Laura: THAT IS THE ONLY THING i WANT ANSWERED
      Ashish: First when i have track your product states then i will give you answer You have to install it in your machine.
      Laura: That sentance makes no sense.  Are normal updates through the application manager or will a serial number be provided?
      Ashish: But you are facing problem so please contact after 24 hours.
      Laura: IF you are having trouble with english, please transfer me to someone else.  You do not understand my questions.
      Laura: THis is a simple question with a simple answer.
      info: Your chat transcript will be sent to [email protected] at the end of your chat.
      Ashish: I am understand everything but without checking of your product how could i answer your question.
      Ashish: Yes, if you have normal product then serial is provided by us.
      Ashish: And a serial number is a licensing key of the product.
      Laura: I am a member of ADOBE CREATIVE CLOUD, with access to all the programs.  HOW DOES A MEMBER OF CREATIVE CLOUD UPDATE PROGRAMS, and ARE SERIAL NUMBERS AVAILABLE to MEMBERS OF CREATIVE CLOUD?  WHERE IN MY ACCOUNT IS MY SERIAL NUMBER?
      info: Your chat transcript will be sent to <Removed by Moderator> at the end of your chat.
      Laura: I am logged into my creative cloud account now.  Where is my serial number located???
      Laura: I see no serial numbers.
      Ashish: You have to go adobe.com and sign in your adobe id. and go to my product and service and go to my product then you will get the serial number of your product.
      Laura: I am there, there are no products listed.  There is only the creative cloud service.  NO SERIAL NUMBERS.
      Laura: Creative Cloud Student and Teacher Edition (one-year)
      Ashish: If you are not able to find it then give me the order number of your product.
      Laura: that is what I purchased.
      Laura: Order: DSS--------------------
      Ashish: Please provide me the order number of your product.
      Laura: Order: DSS---------------
      Ashish: Thank you For give the information
      Laura: All you need to tell me is how to PROPERLY UPDATE MY PROGRAM AND WHERE I CAN FIND A SERIAL NUMBER.
      Ashish: Please allow me a moment.
      Laura: You shouldn't need order info for this because the procedure should be the EXACT same for any customer with a creative cloud membership.
      Ashish: I am checking your order states.
      Ashish: Sorry, i need the order number without it i am not able to find anything for your product.
      Ashish: Please allow me a moment.
      Laura: I gave you my order number twice already.
      Ashish: Yes, i have but i am answering your question.
      Laura: My question is a matter of the proper way to update Lightroom in a creative cloud membership.  It is a stand alone question that should be answerable without any knowledge other than knowing how YOUR OWN PRODUCT operates. HOW DO I UPDATE LIGHTROOM 4.1 to LIGHTROOM 4.3???
      Ashish: You have to adobe voice support for this issue.
      Ashish: You have to contact 18008336687

    Have you tried applying the update by going to Help>Updates within Photoshop Lightroom?  The update should be using the same licensing?  Did you perhaps customize the installation location?  Finally which operating system are you using?

  • How do I turn on photo sharing in itunes so I can see all my iphone photos on my ipad and home computer?

    How do I turn on home sharing so I can see all my iphone photos on all my devices, ipad, apple TV, and home computer?  I must have stopped home sharing when setting this up but would like to turn it on again.

    You might have been using the iPad every day and this issue could have cropped up anyway. I have read where users state that they used their iPad the night before, plugged in to charge it over night and they had the connect to iTunes message on the iPad the next morning.
    What I'm saying is that what happened to you can't be explained other than something went wrong. Brilliant I know, but how can anyone possibly know what happended for sure.
    Without a computer - and I know that with iOS 5 an iPad can be PC free - it is my belief that you could be facing issues down the line because even with iCloud - if you get the connect to iTunes message - there is no way to correct the problem without a computer.
    Even of you had been using the device every day, charging it every night and taking great pains to ensure that the iPad was well cared for, once the connect to iTunes message pops up - you still need a computer.
    Unless I have been missing something for the last six months, iCloud can't bail anyone out of this scenario.

Maybe you are looking for

  • After installing Photoshop CC 2014 all "Open With" references are gone?

    Hi! I installed Photoshop CC 2014 and uninstalled Photoshop CC. I also check the Bridge -> Preferences -> File association settings: There is always "Photoshop" mentioned. So far it looks fine. So no NEF or PSD file are linked to Photoshop CC 2014. N

  • New itunes library error. How do I fix this?

    When I try to open itunes up on my laptop the "new itunes library" error message pops up.  When I plug in my itouch/iphone, itunes still doesn open. The same message pops up.  I downloaded another itunes and installed it without doing anything to my

  • Need to update the actual start date & time of a operation in workorder

    Hi Experts,                I need to update the Actual Start date and Actual start time of a Operation of  a WorkOrder through a Function Module. I was looking into the BAPI_ALM_ORDER_MAINTAIN FM, but i couldn't find any field relating to the actual

  • Printing Presets Problem, Not Retaining Settings Assigned To A Preset.

    Hi I have a 10.5.8 client computer that is experiencing problems with saved printer presets not retaining the paper tray assigned to that preset. It works for other printers but not this one particular printer. I have tried the following. 1. Repair d

  • CS4 can't connect to any MySQL databases

    The MySQL connections stopped working recently from Dreamweaver CS4, even though they still work for the assocated PHP pages when accessed from a web browser. I get this message: "Dreamweaver could not securely connect to your server. It's possible t