How to get a RSA key out of a String
I want to write a program where the user enters a password and than the private key and public key (RSA) is generatet.
I have tried this with DES and the only problem was that i have to convert the encryptet string into a byte array.
Are there any other things what i should know when i convert the DES algorithm to the RSA (i know RSA hast two keys) and can you help me out with the other problem?
hi,
the only algorithm wich based directly on a password in JCE (and a additional salt) is PBEWithMD5AndDES. But DES isn't an asynchron key/encryption. it's a secret (symetric) key. you can't convert DES to RSA. this both are complete diff ways for encryption.
the next what i don't understand is why is it a problem for you to convert a string to a byte-array when the encryption it' needed?
expl:
String s = "thatsmypwassword";
byte[] ba = s.getBytes();encrypt/decrypt ba
and later the return
s = new String(ba);cu
oliver scorp
Similar Messages
-
How to get this report format out ?
Hello all experts,
Sample table creations like the following. Note checkno under xcheck table is not unique. Have tried pivotting the xcheck table then link pivoted xcechk with xcert using certno and invno but this willl end up getting duplicate records. Can u please help ? Basically I am stuck at how to get that vendor name out on the report
create table xcert(
certseq number primary key,
certno varchar2(5) not null,
vendor varchar2(25));
create table xcheck(
checkseq number primary key,
checkno varchar2(8) not null,
invno varchar2(100);
Xcert Data
certseq certno vendor
1 C1001 BP GAS
2 C1002 BUG PEST CONTROL
3 C1003 BP GAS
4 C1004 BP GAS
5 C1005 WILLIES BESTxcheck Data
checkseq checkno invno
1 EF500001 C1001,C1003,C1004
2 EF500002 C1002
3 EF500002 C1005Looking for a following report format
checkno invno vendor
EF500001 C1001,C1003,C1004 BP GAS
EF500002 C1002 BUG PEST CONTROL
EF500002 C1005 WILLIES BEST Thank you
MunsharHi, Munshar,
MunSharmi wrote:
Frank,
"I don't see why you would need another column. What would you need to store, or retrieve, that a table like this wouldn't allow?
Notice my orignal xcheck table data plus a check date column
{code}
checkseq checkno invno checkdate
1 EF500001 C1001,C1003,C1004 11/01/2010
2 EF500002 C1002 12/10/2010
3 EF500002 C1005 01/01/2011
{code}Sure, if you have other data that you haven't mentioned yet, then you need other columns, and maybe even other tables, to store that data.
Talking about this would be a lot easier if you described what you were trying to model in these tables, and what the different entities are.
after nomalization
{code}
seq(PK) checkseq checkno invno checkdate
1 1 EF500001 C1001 11/01/2010
2 1 EF500001 C1003 11/01/2010
3 1 EF500001 C1004 11/01/2010
4 2 EF500002 C1002 12/10/2010
5 3 EF500002 C1005 01/01/2011
{code}What do checkseq and checkdate represent? What is the realtionship between them? If there is another row with checkseq=3, will it necessarily have checkdate=01/01/2011? If there is another row with checkdate=01/01/2011, will it necessarily have checkseq=3?
Shouldn't I need to have the extra seq(PK), then use check seq to group the data report to meet users' target format ? Please adviseIt depends on what your entities are. If you explain that, then perhaps I can give some advice about how to model them.
In general, every type of entity requires a separate table. It looks like xcert represents one kind of entity, uniquely identified by certno. I assume there is some other kind of entity, uniquely identified by checkno, and that you have a table for that which you haven't needed to show in this thread.
Are you saying that there's some other entity, that is uniquely identified by checkseq? If so, it probably needs a table of it's own.
Every table should have a primary key. I had assumed that checkseq only served as the primary key of the xcheck table. If it serves some other purpose, then yes, you would need another column.
Many-to-many relationships usually require a separate table. I was guessing that xcheck was intended to record a many-to-many realtionship between xcert and some other table. Guessing is not always the best way to solve problems. I think it would be better if you explained what you want to do, rather than have me guess at it.
So far, what you've shown is analagous to an order entry system. One kind of entity is customer, another is supplier. Say you're running a company that sells products from many suppliers to many customers. There is a many-to-many relationship between customers and suppliers. Any customer may buy from many suppliers; any supllier may sell to many cutomers. You may have an orders table that keeps track of that many-to-many relationship. You may also have another entity, salesman, that also has many-to-many relationships with customers and suppliers. Depending on what exactly you consider an "order", there are lots of different ways to model this. Can a single order involve many customers? Can a single order involve many suppliers? Can a single order involve many salesmen? If an order always involves one customer buying from one supplier using one salesman, then you may only need four tables. If the situation is more complicated, then you may need more tables. -
How to get the Primary key from Synonym
Hi ,
I want to get the Primary Keys for my tables . I used
java.sql.DatabaseMetaData databasemetadata = connection.getMetaData();
ResultSet rs = databasemetadata.getTables(null, null, "%", null);
rs.next();
System.out.println(" TABLE_CAT "+ rs.getString(1));
System.out.println(" TABLE_SCHEM "+rs.getString(2));
System.out.println(" TABLE_NAME "+rs.getString(3));
System.out.println(" TABLE_TYPE "+rs.getString(4));
System.out.println(" REMARKS "+rs.getString(5)); gives :
TABLE_CAT null
TABLE_SCHEM PROGRESS
TABLE_NAME ApplicConv
TABLE_TYPE SYNONYM
REMARKS null
Now if I use :
rs = databasemetadata.getPrimaryKeys(null,"PROGRESS","Applicconv");
System.out.println("Is result set Non empty "+rs.next()); gives :
Is ResultSet non empty false .
Can you tell me why this result is empty? Is it because of my table is a Synonym?
If it is Synonym how to get the primary key ?You can use DatabaseMetaData#getPrimaryKeys.
-
How to get selected row keys from RichSelectManyCheckbox
Adf Table has getSelectedRowKeys but SelectManyChekcbox does not has anything similar. Can you tell me how to get selected row keys programmatically for RichSelectManyCheckbox?
Hi User,
selectManyCheckbox component's value property holds the selected items values. Bind this property to some bean variable(of type list) so that you can get the selected values by accessing the bean property.
Sireesha -
How to get a pdf document out of a Document form
Hi all,
I have a question of how to get the actual PDF out of a Document Form, when I take the @document value I only get some xml representation of the form, but I need to get the actual PDF.
Thanks in advance
Sincerely
KimThe @document is the way to get the PDF out from the DocumentForm varibale. If you get just the data, it's because the DocumentForm was populated with just the data in the first place.
Make sure you submit PDF from your form and not just the data.
Jasmin -
I create a mobile game. How to get the signing key?
I create a mobile game. How to get the signing key? Is the certificate is payable? Sorry if the topic is in the wrong section.
You need to be an iOS/Mac OS X developer.
https://developer.apple.com/devcenter/ -
CS6 on W7-64 worked fine since April 2013. After a general system update its activation is not recognized anymore. The activation key is suddenly invalid. I uninstalled the sofware and tried to reinstall. Failed. How to get my activation key valid again?
Error "The serial number is not valid for this product" | Creative Suite
-
How to get the attribute values out?
Hi everyone,
<root>
<category name="Mens Clothing" id="0">
<subcategory>Active/Baselayer Tops</subcategory>
<subcategory>Active/Baselayer
Bottoms</subcategory>
</category>
<category name="Womens Clothing" id="1">
<subcategory>aaa</subcategory>
<subcategory>bbb</subcategory>
</category>
</root>
How to get the attribute values out? For example "Mens
Clothing" and "Womens Clothing".
// the line below returns "Active/Baselayer Tops" and
"Active/Baselayer Bottoms"
var myXml:XML = new XML(event.result);
Thanks,
MayHere is attribute identifier operator from FB Help:
@ attribute identifier Operator
Usage myXML.@attributeName
Identifies attributes of an XML or XMLList object. For
example, myXML.@id identifies attributes named id for the myXML XML
object. You can also use the following syntax to access attributes:
myXML.attribute("id"), myXML["@id"], and myXML.@["id"]. The syntax
myXML.@id is recommended. To return an XMLList object of all
attribute names, use @*. To return an attribute with a name that
matches an ActionScript reserved word, use the attribute() method
instead of the @ operator.
Operands attributeName:* — The name of the attribute.
Example
How to use examples
The first example shows how to use the @ (at sign) operator
to identify an attribute of an element:
var myXML:XML =
<item id = "42">
<catalogName>Presta tube</catalogName>
<price>3.99</price>
</item>;
trace(myXML.@id); // 42The next example returns all attribute
names:
var xml:XML =<example id='123' color='blue'/>
var xml2:XMLList = xml.@*;
trace(xml2 is XMLList); // true
trace(xml2.length()); // 2
for (var i:int = 0; i < xml2.length(); i++)
trace(typeof(xml2
)); // xml
trace(xml2.nodeKind()); // attribute
trace(xml2
.name()); // id and color
} The next example returns an attribute with a name that
matches a reserved word in ActionScript. You cannot use the syntax
xml.@class (since class is a reserved word in ActionScript). You
need to use the syntax xml.attribute("class"):
var xml:XML = <example class='123'/>
trace(xml.attribute("class")); -
Could anyone please tell me how to get my cd/disc out. thanks
could anyone please tell me how to get my disc/cd out of my desk top? thanks
CD/DVD - Eject Stuck
CD/DVD - Eject Stuck (2)
CD/DVD - Eject Stuck (3)
CD/DVD - Eject Stuck (4)
CD/DVD - Eject Stuck (5) -
From where can i get the Windows 8 sideload product key and the process how to get it .please explain in detail .
I was able to resolve my issue once I worked with Microsoft Professional Services. Here are the steps needed to deploy a Windows 8 Store app for anyone else looking for help on this.
Create your app package in Visual Studio
https://technet.microsoft.com/en-us/windows/jj874388.aspx
Create an app certificate using PowerShell as administrator, here is one way to do it.
https://msdn.microsoft.com/en-us/library/windows/desktop/jj835832%28v=vs.85%29.aspx
Install the app on the device
https://msdn.microsoft.com/en-us/library/windows/desktop/jj835832%28v=vs.85%29.aspx
Ensure Device has the correct GP settings
http://blogs.technet.com/b/scd-odtsp/archive/2012/09/27/windows-8-sideloading-requirements.aspx
Install the application on the device
Refer to Sideload the app for user section
https://technet.microsoft.com/en-us/windows/jj874388.aspx
* If you run your app now you should get an error, this is because you have not installed a Sideloading Key
And the missing piece of the puzzle What is a Sideload key and how can I get one?
* Documentation on this is confusing so here is what I needed to know and found out
Sideload key is a product key that is needed to be added to the device so that it can use Windows 8 apps that are not from the Store
It is not a requirement to have the machine joined to the domain or have Windows Enterprise installed on it. In my case my target was a Windows 8.0 Pro tablet.
You do not need Windows 8.1 to use sideloading it will work on Windows 8.0 as well
You can purchase a key from a Third Party Distributor but you will need to know what to ask for
Ask for a Windows 8 Sideloading Key, Sometimes referred to as a Windows 8 Embedded Sideloading product key
They cost about $100.00 a pop but they sell them as a Volume License so the minimum you can by is 5.
However in my case it turned out that my company had an Enterprise Sideloading License, I just needed to know who to ask and what to ask for.
Once you get your xxxxx-xxxxx- Slideloading key from the distributor here are the steps to installing it on the device (Section 2 Step 3)
http://blogs.msdn.com/b/micham/archive/2014/05/30/sideloading-store-apps-to-windows-8-1-devices.aspx
Once I installed that my application worked. -
Hi...
I am information technology student. I am now first year second semester
I need help because I don't know how to catch the enter key in JTextField.
I want to submit the form when user press the enter key in JTextField....
I only can find KeyEvent.VK_ENTER ( actually that is not what I want)
Another thing is
"How to add a JMenuItem into a JMenuItem...."
I want to do like this.... When you click the "Tools bar" in View item.. another menu comes out...???"
He he... I hope you all can understand what I mean.. because I know my english is not so good... because I am from Myanmar.
for(int i=0;i<1;i--)
System.out.println("Thanks A lot");
Thu Rein Nyo...
You also can reply by e-mail.. thanksHi...
I am information technology student. I am now first
year second semester
I need help because I don't know how to catch the
enter key in JTextField.it can be done easily by adding an actionListener to the JTextField. So when u enter something in the field and press enter the event will be caught and the code which u write in that will get executed.
Eg:
JTextField.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Your code comes here.
Another thing is
"How to add a JMenuItem into a JMenuItem...."
I want to do like this.... When you click the "Tools
bar" in View item.. another menu comes out...???"I think you are gettin confused with JMenu and JMenuItem. What u need to do is create a JMenu add another JMenu to it and add JMenuItems to it.. and ur problem will be solved.
He he... I hope you all can understand what I mean..
because I know my english is not so good... because I
am from Myanmar.
for(int i=0;i<1;i--)
System.out.println("Thanks A lot");
Thu Rein Nyo...
You also can reply by e-mail.. thanks -
How to get the PRIMARY KEY of a table at runtime ???
Hi everybody,
My requirement is to update a z-table at runtime according to the data given ata runtime. So the main difficulties for me is that whenever I tried to update the table based on the data given in UI many rows are getting updated as these fields are not unique. So I think if I can get the PRIMARY KEY along with these given fields then I can update only one row at a time.
So Can anyone suggest me how to get PRIMARY KEY of a table based on the data in UI..??
Any suggestions will be appreciated..
Thanks,
SekharU will get primary keys of transparent tables using FM "REUSE_FIELDCALATLOG_MERGE".
pass tyour table name and u will get fieldcatalog filled. In tht their is a field called "KEY" if it has 'X' then tht field is a primary key of transparent tables & if it has "space" then it is not a primary key...
Or else you can try with 'DDIF_TABT_GET'
Or try this code
PARAMETERS: p_table TYPE tabname OBLIGATORY.
DATA: go_strucdescr TYPE REF TO cl_abap_structdescr,
gt_tab_fields TYPE ddfields.
FIELD-SYMBOLS: <gwa_tab_field> TYPE dfies.
TRY .
* Get the details of the DDIC table
go_strucdescr ?= cl_abap_elemdescr=>describe_by_name( p_table ).
CATCH cx_sy_move_cast_error .
MESSAGE 'Error while casting' TYPE 'S'. RETURN.
ENDTRY.
* Check if input is a DDIC table
CHECK go_strucdescr->is_ddic_type( ) = 'X'.
* Get the details of the table fields
gt_tab_fields = go_strucdescr->get_ddic_field_list( ).
* Display the Key fields of the table
LOOP AT gt_tab_fields ASSIGNING <gwa_tab_field> WHERE keyflag = 'X'.
WRITE: / <gwa_tab_field>-fieldname.
ENDLOOP. -
How to get one of specfic out parameters in groovy
hi groups,
jdev 11.1.1.5.0 - adfbc
here i learned from Jabr how to get the two out - parameter values which used in procedure.
How to get two out param which is used in Procedure
ok fine. that part is well enough.
by normally,
if the function/ procedure which is defined in AM. which i want to call in groovy ,means i used the following
adf.object.applicationModule.FuncFindEmployeeDescription(params)above groovy is for
if the function or procedure which will return one parameters means ok.
here my scenario i want call the procedure which is defined in AM. the procedure will return two out params values. i need only first value.
how can i do this.?
reference: in this thread you can the procedure with two out params
How to get two out param which is used in Procedurethis is to subu123.
oh ho. :(
this is to santos
thanks santosh as you said i tried.
public HashMap ProcFindProdQueryDesc( String p_bu,
String p_prod_id,
Number p_prod_rev
CallableStatement st = null;
try{
String sql = "begin proc_find_prod_query_desc" +
"(:p_bu," +
":p_prod_id," +
":p_prod_rev," +
":p_desc1," +
":p_desc2," +
":var_lang)" +
";" +
"end;";
st=getDBTransaction().createCallableStatement(sql,this.getDBTransaction().DEFAULT);
st.setObject("p_bu",p_bu);
st.setObject("p_prod_id",p_prod_id);
st.setObject("p_prod_rev",p_prod_rev);
st.registerOutParameter("p_desc1",Types.VARCHAR);
st.registerOutParameter("p_desc2",Types.VARCHAR);
st.setInt("var_lang",1);
st.execute();
System.out.println("p_desc1" +(String)st.getObject("p_desc1"));
System.out.println("p_desc2" +(String)st.getObject("p_desc2"));
HashMap map = new HashMap();
map.put("p_desc1", (String)st.getObject("p_desc1"));
map.put("p_desc2", (String)st.getObject("p_desc2"));
return map;
catch(SQLException e)
throw new JboException(e);
finally
if(st!=null)
try{
st.close();
catch(SQLException e){
e.printStackTrace();
throw new JboException (e);}
if(PscdProdId != null)
adf.object.applicationModule.ProcFindProdQueryDesc(PscdBu,PscdProdId,PscdProdRev).p_desc1;
[1823] DCBindingContainer.reportException :oracle.jbo.JboException
[1824] oracle.jbo.JboException: JBO-29000: Unexpected exception caught: groovy.lang.MissingMethodException, msg=No signature of method: com.rits.suplr.model.servicesAM.xImpl.ProcFindProdQueryDesc() is applicable for argument types: (java.lang.String, java.lang.String, java.lang.Long) values: [MEL, BU01, 0]
at oracle.jbo.ExprEval.internalEvaluateGroovyScript(ExprEval.java:1226)
at oracle.jbo.ExprEval.doEvaluate(ExprEval.java:1261)
at oracle.jbo.ExprEval.evaluateForRow(ExprEval.java:1083)
at oracle.jbo.server.AttributeDefImpl.evaluateTransientExpression(AttributeDefImpl.java:2141)
at oracle.jbo.server.ViewRowStorage.getAttributeInternal(ViewRowStorage.java:1835)
at oracle.jbo.server.ViewRowImpl.getAttributeValue(ViewRowImpl.java:1897)
at oracle.jbo.server.ViewRowImpl.getAttributeInternal(ViewRowImpl.java:840)
at com.rits.suplr.model.views.ProdScoreCardDetlVORowImpl.getItemDesc(ProdScoreCardDetlVORowImpl.java:519)
at com.rits.suplr.model.views.ProdScoreCardDetlVORowImpl$AttributesEnum$16.get(ProdScoreCardDetlVORowImpl.java:181)
at com.rits.suplr.model.views.ProdScoreCardDetlVORowImpl.getAttrInvokeAccessor(ProdScoreCardDetlVORowImpl.java:555)
at oracle.jbo.server.ViewRowImpl.getAttribute(ViewRowImpl.java:870)
at oracle.jbo.uicli.binding.JUCtrlValueBinding.internalGetAttributeValueFromRow(JUCtrlValueBinding.java:1157)
at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttributeFromRow(JUCtrlValueBinding.java:751)
at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttributeFromRow(JUCtrlValueBinding.java:779)
at oracle.jbo.uicli.binding.JUCtrlAttrsBinding.updateValuesFromRow(JUCtrlAttrsBinding.java:145)
at oracle.jbo.uicli.jui.JULabelBinding.updateValuesFromRow(JULabelBinding.java:114)
at oracle.jbo.uicli.binding.JUIteratorBinding.updateValuesFromRows(JUIteratorBinding.java:338)
at oracle.adf.model.binding.DCIteratorBinding.setupRSIstate(DCIteratorBinding.java:838)
at oracle.adf.model.binding.DCIteratorBinding.refreshControl(DCIteratorBinding.java:679)
at oracle.jbo.uicli.binding.JUIteratorBinding.refreshControl(JUIteratorBinding.java:474)
at oracle.adf.model.binding.DCIteratorBinding.refresh(DCIteratorBinding.java:4437)
at oracle.adf.model.binding.DCBindingContainer.refreshExecutables(DCBindingContainer.java:3507)
at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:3340)
at oracle.adf.model.binding.DCBindingContainer.refreshControl(DCBindingContainer.java:2906)
at oracle.jbo.jbotester.panel.BindingPanel.setBindingContext(BindingPanel.java:120)
at oracle.jbo.jbotester.panel.BindingPanel.<init>(BindingPanel.java:88)
at oracle.jbo.jbotester.panel.BindingPanel.<init>(BindingPanel.java:71)
at oracle.jbo.jbotester.form.BindingForm.createMasterPanel(BindingForm.java:63)
at oracle.jbo.jbotester.form.BindingForm.init(BindingForm.java:98)
at oracle.jbo.jbotester.form.JTForm.<init>(JTForm.java:72)
at oracle.jbo.jbotester.form.BindingForm.<init>(BindingForm.java:50)
at oracle.jbo.jbotester.form.FormType$1.createForm(FormType.java:63)
at oracle.jbo.jbotester.form.FormType.createForm(FormType.java:199)
at oracle.jbo.jbotester.form.FormType.createTab(FormType.java:270)
at oracle.jbo.jbotester.form.FormType.showForm(FormType.java:248)
at oracle.jbo.jbotester.form.FormType.showForm(FormType.java:207)
at oracle.jbo.jbotester.form.FormType.showForm(FormType.java:203)
at oracle.jbo.jbotester.tree.ObjTreeNode.showForm(ObjTreeNode.java:140)
at oracle.jbo.jbotester.tree.ObjTreeNode.showForm(ObjTreeNode.java:123)
at oracle.jbo.jbotester.tree.Tree.processTreeMouseClicked(Tree.java:728)
at oracle.jbo.jbotester.tree.Tree.access$100(Tree.java:96)
at oracle.jbo.jbotester.tree.Tree$TreeMouseListener.mouseClicked(Tree.java:141)
at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:253)
at java.awt.Component.processMouseEvent(Component.java:6292)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6054)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4652)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4482)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4247)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4482)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:644)
at java.awt.EventQueue.access$000(EventQueue.java:85)
at java.awt.EventQueue$1.run(EventQueue.java:603)
at java.awt.EventQueue$1.run(EventQueue.java:601)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
at java.awt.EventQueue$2.run(EventQueue.java:617)
at java.awt.EventQueue$2.run(EventQueue.java:615)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:614)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: groovy.lang.MissingMethodException: No signature of method: com.rits.suplr.model.servicesAM.SupplierAMImpl.ProcFindProdQueryDesc() is applicable for argument types: (java.lang.String, java.lang.String, java.lang.Long) values: [MEL, BU01, 0]
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)
at org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.call(PogoInterceptableSite.java:48)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:133)
at bc4j.com_rits_suplr_model_views_ProdScoreCardDetlVO_ItemDesc_null.gs.run(bc4j.com_rits_suplr_model_views_ProdScoreCardDetlVO_ItemDesc_null.gs.groovy:3)
at oracle.jbo.ExprEval.internalEvaluateGroovyScript(ExprEval.java:1208)
... 73 more
## Detail 0 ##i didnot know why it's expecting signature of that method defined in AM .
it's already there. Anything special with groovy while accessing. -
How to get the UDDI Key to publish a service provider system in SR?
Hi,
I am following instruction in appendix 1 & 2 of the white paper at https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/1079b1af-dcb7-2b10-9ebb-eafcaa3cbbea?overridelayout=true
trying to publish a service provider system into the service registry. One thing not clear to me is how to get the uddikey as needed in step 6 in appendix 1.
My service registry is in a PI 7.1 SP4 system. I followed the instruction in appendix 2 but there is no uddi key displayed in the General tab. Please help.
Regards,
Jiannan
Paragraph extracted from the whitepaper:
There may be cases in which the NWA logical settings do not match the Services Repository
settings when Visual Composer is trying to locate the enterprise services. Such cases can occur
when there is no SLD ID definition of the physical system in the Services Repository.
Currently, Visual Composer cannot search for services on a physical system with an empty SLD ID
(which is not a valid one).
To obtain this capability, the following steps should be performed to generate the necessary data
for each system with a non-valid SLD ID, so that Visual Composer can search for services over it.
1.Log on to http://<serverName>:<serverPort>/WSNavigator.
2.Select the Services Registry radio button.
3.In the Find field, enter sr and choose Go.
4.Select the ServicesRegistrySi line and choose Next.
5.Under the Operation Name, search for the publishPhysicalSystems operation, select it and choose Next.
6.Fill the service information parameters with the following (see Appendix 2 for details on how to get this information) :
6.1.Click the + icon in the physical system[].
6.2.Deselect the Classifications checkbox.
6.3.Click the + icon in the classificationReferenceGroups[].
6.4.Click the + icon in the classificationReferences[].
6.5.Deselect the classificationSystemKey checkbox.
6.6.Deselect the uddiKey checkbox and enter the value <localUddiKey>.
6.7.Deselect the value checkbox and enter the value <localSystemHostName>.
6.8.Deselect the host checkbox and enter the value <localHostName>.
6.9.Deselect the physicalSystemKey checkbox.
6.10.Deselect the logical key checkbox and enter the value <System name>.<SystemHome>.<host name>.
6.11.Deselect the systemName checkbox and enter the value <system name>.
6.12.Deselect the type checkbox and enter the value 2.Hi Jiannan,
No worries, you can go to UDDI client from the main page of PI i.e. http://<serverName>:<serverPort>/
And you use the search function for the TModel for your Physical System. Search parameters can use the % wildcard.
Hit the search and you find the UDDI Key for the Physical System.
Cheers.
Hemant Chahal -
How to use the RSA key files generated by Crypto++ in java
Hi - Good day to all :)
I have two RSA key files(private key file and public key file) generated by Crypto++ 5.2.1:
code here:
void GenerateRSAKey(unsigned int keyLength, const char *privFilename, const char *pubFilename, const char *seed)
RandomPool randPool;
randPool.Put((byte *)seed, strlen(seed));
RSAES_OAEP_SHA_Decryptor priv(randPool, keyLength);
HexEncoder privFile(new FileSink(privFilename));
priv.DEREncode(privFile);
privFile.MessageEnd();
RSAES_OAEP_SHA_Encryptor pub(priv);
HexEncoder pubFile(new FileSink(pubFilename));
pub.DEREncode(pubFile);
pubFile.MessageEnd();
}generated private key is:
30820273020100300D06092A864886F70D01010105000482025D3082025902010002818100E19891D888651221AF315B369873F01910D097F554723EE8748FA230F2B954EBEFC57CB402DD03333BA9514AB5256EF92BE714C710D166A1D86CB7A11EFB4499506826AB873F5036B92F07BBB3ABB8F562646DE6E11031C46542633605FDE4A31E0E0A8651B4BC7743C18266D664E59E713D7595ED3D3B6C2F94C6072E276171020111028180425A0CC7372CC918F74AC07978221970C8B5D25736F46CDAF51B2FB40B27735473B28E16D3AA6A5A5CD7724326382FB2B28F4258AA97F1026CD4AE7AAEC25F77D54DF69BB3979E2893EBB071DA5752871BC8C60F9B5546C466F3103884D6B67FADCD51B17899991989507CB16F45DD76EC0DEDA1BD979ED1A101179F9687E9E5024100FFCAAEF814F12DCBDF20D4CFDD5007738DAAE45AE7EC2FD8E23A9EFCA85FADCAF61B03BFEA6FE6023E78700F804C4C275375A85BC367FE39D5FB2E0F0A4555F7024100E1C797A20FB108ADAFECDB025665FF500FDBB4F0829BAAE95833C046005DCA593F6C2437CD3A9AB7CC04372F422B0EE2C7FED87AA53821366962AE0CBDAD89D702402D23C48621D035421851167F08F00150A08791B5B074F96282469486F0895AE794D7973FFC31DD4BB0ABD78A43D13A9D8732E1799AF43BEC16B3DAF3986696B30240351FE7716D1A98A156921569F6361DF4B86FEE56B551CDDC8D395A6AD2E8E4513C1971EF031CD91C3000FDED00829A173E1DD895540D34FDBE71925D59CE7AC9024014A4347A1E7408FBB0A9AE5064FA58CAF2BCA5C00B8082A46EECABFA5CBF61364FEE81E2C049F399A2F601C802DD54A6D9340FABE62D6D1F913026C8B3764AFEI use this key in java
BufferedInputStream input=new BufferedInputStream(new FileInputStream("privateKey"));
int size= input.available();
byte[]buffer=new byte[size];
input.read(buffer);
X509EncodedKeySpec lX509EncodedKeySpec = new X509EncodedKeySpec(buffer);
PrivateKey lPrivateKey = KeyFactory.getInstance("RSA").generatePrivate(lX509EncodedKeySpec);there is a exception,at generatePrivate() method
at sun.security.rsa.RSAKeyFactory.generatePrivate(RSAKeyFactory.java:294)
at sun.security.rsa.RSAKeyFactory.engineGeneratePrivate(RSAKeyFactory.java:171)
at java.security.KeyFactory.generatePrivate(KeyFactory.java:322)
at test.Main.main(Main.java:27)any body can help me?X509 is for public keys, not private keys. You need PKCS8 using PKCS8EncodedKeySpec on the hex decoded private key string.
Your method for reading the private key from the file is flawed. The method available() does not guarantee to give you the file length. This is easy to prove since files can be longer than Integer.MAX_VALUE and available() returns an 'int'. To get the file length use File.length() which returns a 'long'. Also, reading from an InputStream using
input.read(buffer); does not guarantee to read all the bytes. For that you need to use something like DataInputStream.readFully().
Maybe you are looking for
-
Creating Packages and Namespace for Webdynpro Java applications in NWDS
Hi Experts, I am working on a stand alone application and using NWDS for the same. This application consist of some Webdynpro Java apps, Dictionary perspective DC's and BPM applications. I need to create a package and name space for all the applicati
-
Hi, I am looking for some type of sleeve for my ipad when I travel to/from work on my motorcycle. The plan would be to have the ipad in the saddlebag, but have a bit of extra protection from vibration and such. I have a smart cover and the thin back
-
Changelog configuration to audit specific attributes changes
Hi, I am trying to configure changelog. The objective is to create a file having the change in specific attribute values for adds and mods. I configured the same and it creates the file also; but I don't see changes in that file and under the columns
-
Can't Turn Off Workgroup Master Browser
I'm probably missing something but I've got a 10.6.1 server that is setup with a Magic Triangle and I was trying to setup a share for someone to access and I cannot setup SMB without the Workgroup Master Browser being checked and I really don't want
-
Hi, I recorded a clip using Photobooth (about 40 seconds long) and I have been trying to remove the audio using other apps (Final Cut Pro and iMovie), but I can't seem to isolate the audio from the visuals in order to delete it or even replace it. An