How to create credential in Credential Store Framework?

Hi,
I have a WebLogic 11gR1 installation (on Windows Server 2012 with Oracle backend) and is trying to create credential using Credential Store Framework following steps described in http://www.redheap.com/2013/06/secure-credentials-in-adf-application.html
I tried to do it with WLST and get the following error:
Initializing WebLogic Scripting Tool (WLST) ...
Welcome to WebLogic Server Administration Scripting Shell
Type help() for help on available commands
wls:/offline> connect('weblogic', '*******', 't3://localhost:7001');
Connecting to t3://localhost:7001 with userid weblogic ...
Successfully connected to Admin Server 'AdminServer' that belongs to domain 'SitesDomain'.
Warning: An insecure protocol was used to connect to the  server. To ensure on-the-wire security, the SSL port orAdmin port should be used instead.
wls:/SitesDomain/serverConfig> createCred(map="claytablet.sample", key="TestKey"
, user="TestUser", password="blah", desc="First test key");
Traceback (innermost last):
  File "<console>", line 1, in ?
NameError: createCred
What do I miss here?
Thanks,
Yu
P.S.: I did not try the other method described in the post which uses Fusion Middleware Control web interface, as I do not seem to have access to that web interface. The "Admin Server Console" that I can access (at http://localhost:7001/console) does not have the link to Domain > Security > Credentials as described in the post.

Specifically which bundle of 11gR1 did you download and install?  (there are 3 11gR1 download packages here: http://www.oracle.com/technetwork/middleware/weblogic/downloads/wls-for-dev-1703574.html)
Its likely that the version you are using does not have JRF (Java Required Files) - if you can confirm the specific bundle of 11gR1 you downloaded and installed.

Similar Messages

  • Javax.management.InstanceNotFoundException: com.oracle.jps:type=JpsCredentialStore when creating credential using Credential Store Framework

    Hi,
    I have a WebLogic 11gR1 installation (on Windows Server 2012 with Oracle backend) and is trying to create credential using Credential Store Framework following steps described inhttp://www.redheap.com/2013/06/secure-credentials-in-adf-application.html
    I tried to do it with WLST (from under Oracle\Middleware\oracle_common\common\bin) and get the following error:
    wls:/WcsDomain/serverConfig> createCred(map="ClayTablet.Sample",key="TestKey",user="TestUser",password="blah",desc="Test Key");
    Location changed to domainRuntime tree. This is a read-only tree with DomainMBean as the root.
    For more help, use help(domainRuntime)
    COMMAND FAILED due to an unknown reason, Check the stack trace for details
    Traceback (innermost last):
      File "<console>", line 1, in ?
      File "C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\jpsWlstCmd.py", line 522, in createCred
      File "C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\jpsWlstCmd.py", line 504, in createCredImpl
            at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:237)
            at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:223)
            at javax.management.remote.rmi.RMIConnectionImpl_1036_WLStub.invoke(Unknown Source)
            at weblogic.management.remote.common.RMIConnectionWrapper$16.run(ClientProviderBase.java:918)
            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
            at weblogic.security.service.SecurityManager.runAs(SecurityManager.java: 146)
            at weblogic.security.Security.runAs(Security.java:61)
            at weblogic.management.remote.common.RMIConnectionWrapper.invoke(ClientProviderBase.java:916)
            at javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection.invoke(RMIConnector.java:993)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
    javax.management.InstanceNotFoundException: javax.management.InstanceNotFoundException: com.oracle.jps:type=JpsCredentialStore
    Thanks,
    Yu
    P.S. I was using WLST command under Oracle\Middleware\wlserver_10.3\common\bin to do the same and got a different error NameError: createCred and posted a question about that under How to create credential in Credential Store Framework?
    After searching for the same error message in the community I tried to switch to WLST under Oracle\Middleware\oracle_common\common\bin and got the error posted here.

    After extending my domain with JRF and JRF WebService Asynchronous services, I was able to execute "createCred" and "listCred" and so on.
    Yu

  • ADF not support Credential Store Framework API

    I have used Credential Store Framework API for securing the websevice. By using servlet and csf api i am able to access the web logic credential store but when i change my servlet code to adf managbean code there is access voilation error.
    java.security.AccessControlException: access denied (oracle.security.jps.service.credstore.CredentialAccessPermission context=SYSTEM,mapName=Elsevier,
    keyName=WebServices read)
    at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
    at
    During the configurzation of credential store i have done one entry in system-jazn-data.xml (present here domain_home\config\fmwconfig). Hence the below permissions were added:
    <grant>
         <grantee>
         <codesource>
         <url>file:${domain.home}/servers/${weblogic.Name}/tmp/_WL_user/CredentialsStorePOC/-</url>
         </codesource>
         </grantee>
         <permissions>
         <permission>
         <class>oracle.security.jps.service.credstore.CredentialAccessPermission</class>
         <name>context=SYSTEM,mapName=Elsevier,keyName=WebServices</name>
         <actions>read,write,update,delete</actions>
         </permission>
         </permissions>
         </grant>
    My Doubt
    <url>file:${domain.home}/servers/${weblogic.Name}/tmp/_WL_user/CredentialsStorePOC/-</url>
    might be differnent for ADF application as it working fine for servlet appliction
    REF:http://download.oracle.com/docs/cd/E15523_01/core.1111/e10043/devcsf.htm#BABEADIA

    You should refer to the latest documentation:
    http://download.oracle.com/docs/cd/E17904_01/core.1111/e10043/toc.htm
    Did you read the packaging requirements?
    Your cwallet.sso must be packaged in the META-INF of your EAR file (see http://download.oracle.com/docs/cd/E17904_01/core.1111/e10043/scenario.htm#CHDIGIDG)
    The chapter you are referring to is now chapter 23 (http://download.oracle.com/docs/cd/E17904_01/core.1111/e10043/devcsf.htm#BABEADIA).
    HTH,
    --olaf                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to create iTune or App Store without credit card for my existing Apple ID without create new Apple ID or email?

    I got 2 Apple ID and the first time to I use it to iTune or App Store, a box will pop out and telling me this:
    "This Apple ID has not yet been used with the i Tunes Store. Please review your account information."
    Then, I click on the button, "Review". Bla bla... but ended up, I must provide a credit card in order to complete it.
    I do not have credit card, so I search 'How to create iTune or App Store without credit card', same link and same tactic only valid for New Apple ID.
    So, it seem no other option to create iTune or App Store without credit card for existing Apple ID, right?

    The same thing is happening to me!

  • How to create a folder to store my mail?

    hi,
    can u tell me how to create a folder to store my outgoing mails using java mail.
    Million Thanks for u
    With luv
    kathir

    hi chiru,
    Thanks for ur reply.Can u tell me how to configure IMAP.I've tried to configure IMAP in outlook and then i run the program with the code u sent,but it throws
    " javax.mail.NoSuchProviderException: No provider for IMAP
    at javax.mail.Session.getProvider(Session.java:289)
    at javax.mail.Session.getStore(Session.java:363)
    at javax.mail.Session.getStore(Session.java:343)
    at MessageSend.main(MessageSend.java:61)
    Plz give me some soln for this excep.
    Thanks in advance
    Regs
    Kathiravan

  • How to create a file and store its contents into another file?

    Hi,
    I'm having some trouble trying to create a code where I have to to create a file and store its contents into another file?
    I read the API, but I'm not certain how this file thing works.
    Here's my code so far:
    public static void main(String[] args) throws Exception
              File file = new File("tasks.txt");
              if (file.exists())
                   System.out.println("File already exists");
                   System.exit(0);
              Scanner scan = new Scanner(System.in);
              Scanner scan2 = new Scanner(System.in);
              //Scans the input line by line
              scan.useDelimiter("\\n");
              //Scans the input by tabs
              scan2.useDelimiter("\\t");
              PrintWriter outputs = new PrintWriter("newtasks.txt");
              outputs.print("ok");
              outputs.println(3);
              outputs.close();
         }

    I managed to change my text into uppercase, but how do I store the uppercase content into another file.
    -So this is what I did so far, I took a text file and modified its strings to uppercase.
    -Now I need to put those modified strings into another text file, is there a way where I can do that with my current code?
    -I already tried printwriter, but it doesn't seem to work
    public static void main(String[] args)throws IOException
              //Task[] oneHundredTasks = new Task[100];
              String uppercase;
              String combine;
              Scanner scan = null;
              FileInputStream in = null;
            FileOutputStream out = null;
            PrintWriter output = null;
            try
                 scan = new Scanner(new BufferedReader(new FileReader("tasks.txt")));
                 scan.useDelimiter("\\n");
                 scan.useDelimiter("\\t");
                while (scan.hasNext())
                     if(!scan.hasNext())
                          scan.next();
                     combine = scan.next();
                     uppercase = combine.toUpperCase();
                     System.out.println(uppercase);
            finally
                if (scan != null)
                    scan.close();
            //The program will try the input and output files
            try
                 in = new FileInputStream("tasks.txt");
                out = new FileOutputStream("newtasks.txt");
                int c;
                //The number "-1" is used to indicate that it has reached the end of the stream.
                while ((c = in.read()) != -1)
                    out.write(c);
            finally
                if (in != null)
                    in.close();
                if (out != null)
                    out.close();
         }

  • OWSM: How to use Generic Key in Credential Store 11g

    Hi there,
    I am facing the following issue with the Weblogic Credential Store Framework (CSF):
    Context:
    I have a web service exposed somewhere in a Tomcat server. This service is not secured, initially it was, but the idea was to deport it to a mediator using OWSM WS policy . The service internally extracts the username from SOAP Header and perform some authorization checks prior performing some business logic.
    So our idea was first to configure a new authentication provider in the default Weblogic's realm to hit our LDAP system. When this was done, we created a simple composite to virtualize the web service and apply a WS Security with username. In order to do that, we did create a new key in the Credential Store under oracle.wsm.security.map and declare our username + password for a particular user in LDAP. We tested it and it works fine!
    Issue: Now we want to leverage this using any user from the authentication provider. We created a new key which has the type "Generic" on the entreprise manager. We don't know though what to do next to specify "every user in our authentication provider", the documentation here is very evasive and we are stick to guess the grammar the CSF expects. We saw that WSLT could be used too to create the key.
    Soa Suite version: 11.1.1.3
    Does anyone has a clue to solve this issue ?
    Thanks

    It is unclear where you are having a problem.  Is your issue at runtime (when the form runs in the browser) or when working in the Builder on the form?
    Also be aware that you will need to sign your jar and include some new manifest entries.  Refer to the Java 7u51 documentation and blogs that discuss the changes.
    https://blogs.oracle.com/java-platform-group/entry/new_security_requirements_for_rias
    http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/manifest.html

  • How to create an Iview in BI 7.0?

    Hi Experts,
    i want to create iviews in Bi 7.0 but can not find how to do that.
    I n the older version i could create a query and said save als Iview.
    Could you please explain the steps.
    1. how to create
    2. where to store
    3. How to open
    4  How to publish in portal or to open als URL?
    Many Thanky for the Informations
    Cheers
    Gilo

    Hi Gilo,
    In iView defines the integrated view,which is going to give all integrated sourcesystems information to portal.
    The Portal Content Studio provides a framework for creating iViews in 3 ways.
    1.iView wizards
    2.Copy&Paste actions
    3.Content mirroring tools.
    Creating iView Instances Using Copy-Paste
    Use
    You can instantaneously create new iViews without a wizard (see Object Creation Wizards) by copying existing iView instances using the portal's Copy, Paste, and Paste as Delta Link actions.
    Both paste actions (Paste and Paste as Delta Link) create new iViews that are delta links instances; however, the relation of the new object to the one being copied differs. This difference is illustrated in the figure below.
    &#9632;       The Content Mirroring tool can also be used to duplicate content. Delta links are generated between the original and copied objects. See Content Mirroring.
    &#9632;       To view the delta link source objects and dependents of an object, use the delta link tracer. See Tracing Delta Link Dependencies.
    Procedure
    You use the Copy with the Paste and Paste as Delta Link actions with iViews just as you would other object types in the Portal Catalog.
    For general usage instructions and a description of the commands, see Copying an Object or Folder (Copy & Paste).
    As the first step you have to navigate to the right Portal Content folder, where you want to add the BI report as Portal iView.
    Then you have to create a new iView using the context menu: New -> iView
    Now you see the iView Wizard. In the first step you have to choose “iView template – create an iView from an existing iView template” as source type.
    In the next step you have to choose the iView template “BEx Web Application iView”.
    Then you have to provide an ID (technical name of the Portal Content iView), a description, the iView ID Prefix and the master language of the iView.
    Then you have to choose the version of the BEx Web Application. If you created the Web Template using the Web Application Designer based on SAP BW 2.x/3.x, you have to choose the appropriate option. If you have created the Web Template using the new Web Application Designer based on SAP NetWeaver 2004s, you have to choose the option SAP NetWeaver BI 7.x
    In the next step you have to type in a prefix (depending on the version of the BEx Web Application) and the technical name of the Web Template. If you have used the SAP BW 2.x/3.x Web Application Designer version you have to use the prefix “TEMPLATE_ID=”. If you have used the Web Application Designer based on SAP NetWeaver BI 7.x, you have to use the prefix “TEMPLATE=” (e.g. TEMPLATE=MYTEMPLATE_ID).
    In the last wizard step you can check your entries, you have made before. You can also set the flag “Open for editing, when wizard completes”. Then you can directly work on the BI iView to do some further adjustments.
    After pressing the “Finish”-button in the iView wizard the iView properties show up. There you can select the property category “Appearance – Size”. For the property “Height Type” you should select “Automatic” in order to avoid scroll bars on the portal page later on. Save your settings and close your BI iView
    In the next step you want to add your newly created BI iView to a page. Therefore you have to first navigate to the page you want to add the new iView (or you can create a new page). Then you have to open the page via the context menu &#56256;&#56518; Open &#56256;&#56518; Object
    To add the iView to the page you have to navigate again to the newly created iView. Via context menu you can add now the iView to the page: Right-mouse click on the iView &#56256;&#56518; Add iView to page &#56256;&#56518; Deltalink. Afterwards you save the page.
    Finally you can do a preview to have a look at your new BI iView that is integrated into the portal page. Depending on the result you can adjust the page layout.
    As a result you will see the BI iView on your portal page.
    Before you can create a BI iView in the Enterprise Portal, the system connection and the alias of the BI system has to be defined. This can be done in the System Administration of the Portal &#56256;&#56518; System Configuration &#56256;&#56518; System Landscape
    Also the user mapping to the BI system has to be maintained (in order to use single-sign on). This can be done in the user administration &#56256;&#56518; Identity Management

  • How to create own Frame?

    Hello,
    How to Create My Own Frame, store it as preset and use it any time?
    Thanks
    Dhiraj

    Steps to follow :
    1. For creating a frame or theme, you would need to create a psd and a metadata file and place it @ the location : C:\Documents and Settings\All Users\Application Data\Adobe\Photoshop Elements\9.0\Photo Creations\frames for frames and C:\Documents and Settings\All Users\Application Data\Adobe\Photoshop Elements\9.0\Photo Creations\themes for themes.
    2. Next you would need to delete the file ThumbDatabase.db3 from C:\Documents and Settings\All Users\Application Data\Adobe\Photoshop Elements\9.0
    3. Relaunch Application.
    The psd name and metadata file name should be same.
    Let me know if this works out for you.
    ~V

  • How to create Document Structure for existing project in Solution Manager

    Hi gurus
    We have all the project document saved using Solution manager . we have ended with Phase1.
    We are starting Phase2 and they are asking me to creat different folder as Phase to in existing project and store all the Documents
    Can any one please tell me how to create New folder and store the documents in Existing project
    Point will given for helpfull Answer
    Thanks
    Bhaskar

    Hi Bhaskar,
    Assuming you have full authorisations, the procedure is simple.
    Please go SOLAR_PROJECT_ADMIN transaction.
    From the menu please select Project -> Copy
    In the ensuing screen, key in your desired project name, scroll through the other checkboxes to see if you are happy with the default choices; if not, take corrective actions.
    In the last set of radi buttons "Desired behaviour at later version comparison", the default choice (2nd entry there - Adjust target project to the original of the source project) is fine.
    From your scenario, since you do not have a Template -> Implementation Project functionality and instead are copying from one Implementation to the other, this radio button is of little consequence.
    Execute the process.
    In the window that comes up, please choose Local Object, assuming that you do not want to capture the whole contents into a 'Transport'. This is more required if you are aiming to copy the project from one SolMan instance to another.
    It would give an information message "Generating in batch job (Name ......)
    In a few minutes, you'd receive an intimation of the Project being copied.
    That's pretty much about it. Have a check on the newly created project in SOLAR01.
    Please let me know if you have any doubts.
    Best regards,
    Srini

  • How to get apps from usa store

    I want to add apps from the usa but cant believe its such a task or not possible to do,Why is it that we in south africa cant download any app anywhere in the world.

    If you want workarounds, you can Google something like "how to create an US App Store account", since teaching you how to do it here would be against the forum policies.
    But be sure, it is possible.
    JP

  • Create a trigger to store information

    How to create a trigger to store information? For example, I want to write a trigger to store ename, type of transaction, date of transaction, name of transaction of an employee table into employee log table. Thanks

    craeting tirgger with PRAGMA Autonomus tansaction will help you.
    here is how it is done..
    create tabale emp_log (empname varchar2(25), emptranstype varchar2(10),emptransdate date,emptransname varchar2(25);
    create or replace trigger emp_trg
    after insert on emp
    for each row
    declare
    pragma autonomus_trasaction;
    begin
    insert into emp_log values (:new.empname,:new.trans_type,sysdate,:new.trans_name);
    commit;
    end;

  • SOA 11g how to create a username and password in the Credential Store (CSF)

    Hi,
    I have SOA 11g Installed wanted to find out how can I create a user name and password in the Credential Store (CSF). I see in the documentation saying A credential can be created in the CSF in one of two ways: through Fusion Middleware Control or through WebLogic Server Scripting Tool (WLST). I am trying to create a BPEL Connection in Oracle IPM. Can someone please let me know how exactly can I create this. Any help is appreciated.
    Thanks

    You may want to ask in the Forum Home » SOA & Process Management » BPEL forum.
    The WLST commands for credential stores are maintained by the SOA products, not by the WLS group.

  • How to grant user permission to create "Credential" and "Proxies"

    Hi Team,
    Kindly let me know how to grant permission for user to create "Credential" and "Proxies" on server:
    Thanks in advance
    Santosh

    Can I revoke this permissions once I grant?
    You can use DROP and REVOKE commands to do the opposite.
    USE [msdb]
    GO
    ALTER ROLE [SQLAgentOperatorRole] DROP MEMBER [TestLogin1]
    GO
    USE [msdb]
    GO
    ALTER ROLE [SQLAgentReaderRole] DROP MEMBER [TestLogin1]
    GO
    USE [msdb]
    GO
    ALTER ROLE [SQLAgentUserRole] DROP MEMBER [TestLogin1]
    GO
    use [master]
    GO
    REVOKE ALTER ANY CREDENTIAL TO [TestLogin1] AS [sa]
    GO
    Cheers,
    Vaibhav Chaudhari
    [MCTS],
    [MCP]

  • How to Add Publisher Administrator Credentials to Oracle BI Presentation Services Credential Store

    I used to follow this document until 10g -  Bookshelf v10.1.3.2: Adding Publisher Administrator Credentials to Oracle BI Presentation Services Credential Store  
    Does anyone know how to configure the same in OBIEE 11G
    Thanks for your help
    Srix

    Tarun
    In BI URL word analytics is kind of virtual directory, if you want to change this you might have to change at Web Server side.
    Try to use em for your oc4j to change or redeploy the analytics with desired name.
    Just in case you are using IIS then you need to check in IIS.
    If helps mark
    ~ http://cool-bi.com

Maybe you are looking for