Private Credentials and how to get them back
How to extract back the private credentials in a clean way from weblogic?
We are currently working with bea weblogic version 7
and have developed an authentication module and a credential mapper module
The authentication is fairly simple : the user types in a username and password
and we come into the Authenticator Provider which we configered in our realm
The partial signature of the interface interface javax.security.auth.spi.LoginModule
public void initialize(Subject subject,CallbackHandler callbackHandler,Map sharedState,Map
options)
in the initialize method we store the subject in a private variable
public boolean commit()
in the commit method we add a principal to the subject via
subject.getPrincipals().add(new Principal(username))
and we add the private credentials as
subject.getPrivateCredentials().add(new PasswordCredential(username,password))
Now ,
some time later when the user want's to access an ejb that is using a JCA connector
component
and want's to retrieve a connection, we will pass via the Credential Mapper that
we configured in the realm.
The method signature is
public Vector getCredentials(Subject requestor,Subject initiator,Resource resource,String[]
credentialTypes)
The initiator subject represents the user that authenticated himself
I can extract the principal with the method subject.getPrincipals
but when i try to extract subject.getPrivateCredentials i get an empty set.
The questions is of course did weblogic hide away the private credentials or not.
I can work around this but stuffing the password in the principal at the moment
of authentication , but i would prefer a cleaner solution.
Any ideas
Blyau Gino
[email protected]
Is the Subject created in the Authenticator ever serialized or passed across
the wire? If so, anything stored in the private or public credentials will
be removed as part of the serialization process. This is documented in the
JAAS specifications from Sun.
Paul Patrick
"gino blyau" <[email protected]> wrote in message
news:[email protected]...
>
How to extract back the private credentials in a clean way from weblogic?
We are currently working with bea weblogic version 7
and have developed an authentication module and a credential mapper module
The authentication is fairly simple : the user types in a username andpassword
and we come into the Authenticator Provider which we configered in ourrealm
>
The partial signature of the interface interfacejavax.security.auth.spi.LoginModule
>
public void initialize(Subject subject,CallbackHandlercallbackHandler,Map sharedState,Map
options)
in the initialize method we store the subject in a private variable
public boolean commit()
in the commit method we add a principal to the subject via
subject.getPrincipals().add(new Principal(username))
and we add the private credentials as
subject.getPrivateCredentials().add(newPasswordCredential(username,password))
>
>
Now ,
some time later when the user want's to access an ejb that is using a JCAconnector
component
and want's to retrieve a connection, we will pass via the CredentialMapper that
we configured in the realm.
The method signature is
public Vector getCredentials(Subject requestor,Subjectinitiator,Resource resource,String[]
credentialTypes)
The initiator subject represents the user that authenticated himself
I can extract the principal with the method subject.getPrincipals
but when i try to extract subject.getPrivateCredentials i get an emptyset.
The questions is of course did weblogic hide away the private credentialsor not.
>
I can work around this but stuffing the password in the principal at themoment
>
of authentication , but i would prefer a cleaner solution.
Any ideas
Blyau Gino
[email protected]
Similar Messages
-
I have set up folders on iCloud to file my mail but notice that some of the emails are missing when I've transferred them. Can anyone tell me where they are and how to get them back please?
This can be a problem with the file places.sqlite that stores the bookmarks and the history.
* http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox -
i sync my purchases to my ipod now all my music is gone and my games are gone too how can i get them back?
You most likely synced your iPod to a different iTunes then you previously synced it with. You won't be able to get all of your music back unfortunately unless you had it backed up.
Sorry!
BF -
All of my photos are missing from Iphoto on my mac. I have turned on icloud however my iphone photos are not on my ipad or imac either. Help.
Do you still see your photos, when you launch iPhoto and not Photos?
Where did you keep your iPhoto Library? In your Pictures folder, as is the default? Or on an external drive?
Look in the folder with your iPhoto Library.
You should be seeing two libraries, if you already let Photos upgrade the iPhoto Library:
Your iPhoto Library, now called .migratedphotolibrary
and the new Photos library:
are the libraries there? and how large are they? -
In my Finder window, the picture icons that usually show up next to the items are not there. i.e. in my sidebar, the little pictures that are usually by the Application, Desktop, Documents, etc items. Also, the back and forward arrows, list items and tasks don't show as well. Any ideas on how to get them back?
Hello AgentScaber,
You'll likely need to reinstall Mountain Lion.
OS X Mountain Lion: Reinstall OS X
http://support.apple.com/kb/PH10763
Cheers,
Allen -
Hi guys...I have just got a new computer and want to get my library back up and running on it. However I seem to be missing some of my iTunes music purchases. Any ideas on how to get them back? They show up on my ipad but not my actual itunes account.
Hello there, Capricious13.
There are great pointers in the following Knowledge Base article. Depending on where you see the content and where you want to get it to, this should guide you to putting it in the right place:
Downloading past purchases from the App Store, iBookstore, and iTunes Store
http://support.apple.com/kb/ht2519
Thanks for reaching out to Apple Support Communities.
Cheers,
Pedro D. -
My computer was hacked using a softbank pocket wifi, I had to install an earlier version of the disc provided for my mac reset my user password and I still need to recover my administrator password that was altered. I have lost all of my applications already existing on my mac including iPhoto, and all other applications. I am wondering how to get them back? I am in Japan and I have proof of purchase in my iTunes, but on my computer all the allplications are blocked. I have no idea what to do to get them back. It is very annoying.
Thank you for your help.
Erika K.Reinstall from the original source - the restore disks that came with the computer or from the App store if the computer did not come with disks
LN -
i have lost all my notes saved on my iphone after syncing it. and my default mailbox is gmail. notes were very important. and now i dont know how to get them back. can anyone help me out please? thanks in advance.
Try this ..
On your Mac open System Preferences > iCloud
Deselect the box next to: Notes
Then reselect it.
Give iCloud a few minutes to re sync the data.
Other than that, try Time Machine > http://pondini.org/TM/15m.html -
Okay i had to install Itunes onto my new OS because window's Vista messed up on me and i can't get any of my old purchases back from my account such as music and movies any ideas on how to get them back (i do not have the folder that contains old items from the last itunes or anything from that OS because it had a virus and i just wanted windows 7)
Downloading past purchases from the App Store, iBookstore, and iTunes Store
Hope this helps,
JD -
I right clicked my iPod on iTunes and clicked restore from back up because i thought it would undo my IOS6 update. IT DELETED ALL MY PICTURES (2,000) AND I DON'T KNOW HOW TO GET THEM BACK!!!! Please help me!!!!!
Well, if you have not backed them up, they are gone.
Next time, when you have important material in only one place, back it up. -
All of my titles, themes and generators seem to be completely missing from Final cut pro x. Do you know how to get them back?
Do you mean that when you click the title browser, for example, nothing is there?
Do you at least see several categories listed in the effects browser?
First make sure that you have nothing typed into the search box (not even spaces).
If you still see nothing, try this in order:
1) Window->Revert to Original Layout
2) Quit FCP X, delete preferences using Preference Manager (a free download from Digital Rebellion)
3) Download FCS Remover, and use it to completely remove FCP X. This will NOT delete your content, just the application.
4) Reinstall FCP X from the Mac App Store: log in with the same Apple ID that you used to buy FCP X, click on "Purchases", locate FCP X and click Install. -
After upgrading my software i have seem to have lost all my contacts and photos, i did a back up but i have no idea how to get them back on? maybe im illiterate but i dont know how to find it in my itunes? please help!!
http://support.apple.com/kb/HT5824?viewlocale=en_US&locale=en_US
-
so my computer crashed and i had lost all my itunes purchases and dont know how to get them back, so my computer crashed and i had lost all my itunes purchases and dont know how to get them back
You have a backup of your computer, or at the very least of your iTunes media, correct?
Simply copy your backup of your iTunes media into the iTunes library on your new computer.
Connecting and syncing your device to the new computer without first recovering your iTunes media is a really, really, really bad idea. iDevices are designed to ONLY sync with one computer. When you plug your device into a new computer, it will wipe all media on the device when it syncs. The only media you may be able to salvage and transfer to the new computer would be anything bought directly on the device.
If you do not have a backup of your iTunes media, then you will want to either look at a way (using software from a third party company) to either extract the media from you iDevice or your old computer (assuming the hard drive is not toast). -
I lost the little white balance dropper thingy and the option to change exposure and cannot figure out how to get them back! Help! Thank you!
Are you saying you've lost the "Basic" tool tab?
If yes, just right-click on one of the other tabs and select "Basic" from the context menu that's presented. -
I downloaded a cheap PDF editor and it converted all my PDFs to their software. Then when I deleted it, I cannot open them in the Adobe format any longer. Please let me know how to get them back!
It's important to understand that when this sort of thing happens files aren't "converted" at all.
In Windows and Mac, there is just one app (program) that it run when you double click a type of file. There's an app for Word documents (Microsoft Word). There's an app for PDF files. So all that happened is that you installed an app which can open PDF files.
Nothing changed in the files. You can still open them the traditional way if you forget double click - start the app, use Open from the File menu.
Maybe you are looking for
-
MacBook Pro....things you need to know before you buy!!!
Helpful hints before you buy your MacBook Pro 15 or 17 inch: 1. New MacBook Pro...does not have a firewire 400 port!!. If you have to transfer data from an old (2 years old) MacBook Pro to new one...need a 800 firewire cable or a 400 to 800 cable!! 2
-
Unable to create service central contract items
Hi Experts We are in SRM 7 EHP 2 ECC 6 EHP 6 We are unable to create Central Contract with Service. There is no "Outline" or "Service" on drop down from ADD LINE in Central Contract. Please help urgently. Thanks Ajit
-
Does PL/SQL support recursion in function calls? Does PL/SQL support recursion in procedure calls? is there some papers or info I can get to dig into this. ANy help will be apprecciated Eric Echeverry
-
Workflow with no agents on tasks
Hello friends, needing some help pls. I am using a WF combined with the Organizational Structure form HR to get the agents for each task. There you go the doubts: 1. What can I do or how could I avoid a task for the workflow with no agents on th
-
Regarding stateless bean create() method problem
hi every body, I am Learning EJB now for this i created one StatelessBean with a eho functionality with jsp. it is working good for the first time but when i am trying to run that jsp once again it shows the following error in server console 11:32:13