Can I provide my own implementation of java.security.acl.Acl ?
Hi,
If I write my own securrity realm, am I able to use my own implementaion of
'java.security.acl.Acl' and 'java.security.acl.AclEntry' or do I have to use
the implementation provided by weblogic ? When Security.checkPermission() is
called, does it solely rely on APIs defined in 'java.security.acl' or does
it really expect to talk to an instance of weblogic 'AclImpl' ?
Thanks, Alexandre.
Alexandre Vauthey
Software Engineer
Application Networks
444 Ramona street
Palo Alto, CA 94301
Yes, you can do this.
Alexandre Vauthey wrote:
Hi,
If I write my own securrity realm, am I able to use my own implementaion of
'java.security.acl.Acl' and 'java.security.acl.AclEntry' or do I have to use
the implementation provided by weblogic ? When Security.checkPermission() is
called, does it solely rely on APIs defined in 'java.security.acl' or does
it really expect to talk to an instance of weblogic 'AclImpl' ?
Thanks, Alexandre.
Alexandre Vauthey
Software Engineer
Application Networks
444 Ramona street
Palo Alto, CA 94301
Similar Messages
-
Can I have my own implementation of java.awt.EventQueue
Hi guys,
Can I "override" the default implementation of java.awt.EventQueue? Some JVM/CVM tricks?
For any tips, Thanks!I think what you're looking for is EventQueue#push(EventQueue).
public static void main(String[] args) {
final EventQueue queue = new EventQueue() {
public void postEvent(final AWTEvent theEvent) {
super.postEvent(theEvent);
System.out.println("postEvent "+theEvent);
Toolkit.getDefaultToolkit().getSystemEventQueue().push(queue);
final JFrame frame = new JFrame();
frame.setContentPane(new JButton("Click Me"));
frame.setSize(300, 300);
frame.setLocationRelativeTo(null);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setVisible(true);
} -
Weblogic implementation of java.security.acl.Group
hi guys
Do you know of any specific reason why there isnt a implementation of the
java.security.acl.Group interface in the weblogic jar.
I am trying to create a simple user manager service which uses the mbeans
exposed by weblogic. However the interface I am coding to expects me to return
java.security.acl.Group when I create a Group. This has resulted in a deadlock
as I havent been able to locate a non deprecated implementation.
Thanks
anandYes, you can do this.
Alexandre Vauthey wrote:
Hi,
If I write my own securrity realm, am I able to use my own implementaion of
'java.security.acl.Acl' and 'java.security.acl.AclEntry' or do I have to use
the implementation provided by weblogic ? When Security.checkPermission() is
called, does it solely rely on APIs defined in 'java.security.acl' or does
it really expect to talk to an instance of weblogic 'AclImpl' ?
Thanks, Alexandre.
Alexandre Vauthey
Software Engineer
Application Networks
444 Ramona street
Palo Alto, CA 94301 -
Can't provide my own LocationProvider
The device I'm using doesn't have GPS in its JVM and so no complete JSR179.jar. I need to get the GPS information from a serial port that interfaces to the device's GPS on my mobile device. I was hoping to create a connection to the serial port and implement the abstract classes to provide the location information as a LocationProvider. Can anyone point me to where I can learn how to do this?. I created a class called LocationProviderImpl that extends LocationProvider and has its own getInstance but the method isn't called.
The blue link over to the left that says Report inappropriate contact is what will help. I've asked that the wording be changed, but that is how you would contact a moderator and ask that one of your posts be removed, or to rectify issues with your log in(s).
Click the link and explain what you need and a mod will respond.
You can edit your posts for an hour after you post it - after that you need to contact a moderator to get it edited. -
How can I provide my own list of CA-certificates for TLS-connections from within a Add-On
I'm considering writing an Add-On that does a DNSSEC/DANE lookup.
My scenario is that a DNSSEC query for the TLSA (DANE) records of a site return a full Root Certificate for a site. (2,0,0 in DANE jargon.)
I want to create new TLS context with a CA-pool containing just that Certificate, so that when I browse to the site, the TLS-layer verifies the site certificate against the DNSSEC-specified Root CA.
My question: how do I program that in an add on? How can I specify a *certain* CA root certificate before opening the connection.Replying to myself to add some more information.
For doing the DNSSEC-DANE lookup, I use a strategy as pioneered by the DNSSEC validation Add On.
My question is how to create a TLS-connection context with a certain Root CA before connection to the site. -
How can I make my own applet changed to Security Domain?
My delevopment tools is PHILIPS JCOP41v22.Thanks!
This is the message in the JCOP DEBUG WINDOW
cm> card-info
=> 80 F2 80 00 02 4F 00 00 .....O..
(8326 usec)
<= 08 A0 00 00 00 03 00 00 00 01 9E 90 00 .............
Status: No Error
=> 80 F2 40 00 02 4F 00 00 [email protected]..
(8943 usec)
<= 6A 88 j.
Status: Reference data not found
=> 80 F2 10 00 02 4F 00 00 .....O..
(10867 usec)
<= 05 31 50 41 59 2E 01 00 01 0E 31 50 41 59 2E 53 .1PAY.....1PAY.S
59 53 2E 44 44 46 30 31 90 00 YS.DDF01..
Status: No Error
Card Manager AID : A000000003000000
Card Manager state : OP_READY
Load File : LOADED (--------) "1PAY." (PSE)
Module : "1PAY.SYS.DDF01"
cm> install -s 315041592E 315041592E5359532E4444463031
=> 80 E6 0C 00 2A 05 31 50 41 59 2E 0E 31 50 41 59 ....*.1PAY..1PAY
2E 53 59 53 2E 44 44 46 30 31 0E 31 50 41 59 2E .SYS.DDF01.1PAY.
53 59 53 2E 44 44 46 30 31 01 80 02 C9 00 00 00 SYS.DDF01.......
(16544 usec)
<= 69 85 i.
Status: Conditions of use not satisfied
jcshell: Error code: 6985 (Conditions of use not satisfied)
jcshell: Wrong response APDU: 6985 -
How can i create my own HashMap implementation?
Do i extend HashMap and just override the needed methods?
What i wanted to do was change the way a HashMap stores it's
elements so it behaves the same as a TreeMapBad idea IMO. The two are vastly different.
HashMap implements Map
TreeMap implements SortedMap
Do you want to implement a Map or a SortedMap?
Using a hash by definition precludes having any sort of ordering to the elements.
If you want to implement your own Map, then do exactly that.
The best way would be to extend AbstractMap and go from there.
What advantages are you hoping to gain by providing your own implementation of Map?
Have you looked at all the other implementations in the API to see if they are of any use?
Cheers,
evnafets -
How i can make my own connection in java source of a jsp page
How i can make my own connection in java source of a jsp page (How to get connection from JNDI datasource address) ?
imagine that i have a rowset in a web page , now i want to do some operation using
plain JDBC , so i will need a connection object.
I tried to get one of my rowsets connection but it return null ?
what is best way to retrive a connection from JNDI datasource that we define for our project?
for example if i have
myRowSet.setDataSourceName("java:comp/env/jdbc/be");
in web page constructor
now i want a pure connection from the same datasource ? JNDI
Thank youIt is not hard to get your own connection from datasource.
in your case you need to do like the the following code.
i provide sample to show you how to catch the exception and create an statement .
Connection con =null;
try{
InitialContext ctx = new InitialContext();
DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/be");
con = ds.getConnection();
java.sql.Statement st =con.createStatement();
}catch(SQLException sqlex){
sqlex.printStackTrace();
sqlex.getNextException().printStackTrace();
catch(NamingException nex){
nex.printStackTrace();
hth
Masoud kalali -
When I try to open a gradebook program called powerschool, I get a message that Java is not deteced, but my computer indicates that it has Java. I can't download any version of Java because I get a message that Apple has its own version of java. My computer indicates that no new software updates are needed.
Start here: http://support.apple.com/downloads/#java
-
Can be implemented with Java 2D?
Could anyone tell me what kind of effect in this flash animation? it can be implemented with Java 2D?
http://www.echt-wahnsinn.de/liebesgesichtflash.htmThanks for your answer.
so it's not only just for fun but the part of our semester project. :-)
Could you explian it more in detail, I mean "manipulate the color/brightness values"
please tell me if the step is right:
1. load a new image as background pic and another new pic as the small image (using BufferedImage)
because I will scale(maybe scale = 0.5) the both pics in my UI window.
. img_org . img_min . img_result .
2. create the background pic in third ImagePanel automatically and finish the image manipulations.
at the same time to get the size of img_org, img_min, and color/brightness values, pixels.
here I am not sure how to implement it effectively. image clipping?
any suggestion and help are welcome!!
laue -
How to register own Transport implementation inside java
Hi,
My application is running on a shared host where I do not have admin rights.
I have written my own implementation of the SMTP Transport.
In order to be able to use it, it appears that I have to register it in
$JAVA_HOME/jre/lib/javamail.providers
with the line
protocol=smtp_my; type=transport; class=com.my.app.mail.SMTPTransportMy; vendor=Me;
this, is however not possible in all environments I want to run my app.
Is there a way to do it inside java similar to the MailcapCommandMap approach?
Any hints would be highly appreciated!
Ralf
https://www.privasphere.com/e.do?email=hauser(at)acm.org
Just for reference how it is done there!
MailcapCommandMap mc = (MailcapCommandMap) CommandMap
.getDefaultCommandMap();
mc .addMailcap("text/enriched;;x-java-content-handler=com.sun.mail.handlers.text_plain");
//.addMailcap("text/*;;x-java-content-handler=com.sun.mail.handlers.text_plain");
CommandMap.setDefaultCommandMap(mc);I don't understand what you mean by register a bean inside another bean.
-
How to provide javascript implementation in java
hi all
I am workiing in a project where i need to automate the javascript processing from java.
suppose if a page has load event and it has some function to do , from java i need to do the functionality for javascript and generate a new DOM for the webpage.
In this i need to provide the functionality for
document.write()
how to provide the write functionality from java.
suppose
<form>
docuement.write("some thing do tadd in form may be some html code");
</form>
so how can i add this content in write to a element called FORM and if a page has many forms how to add it to specific one.
waiting for some hints
thanking youtry this link
http://java.sun.com/products/plugin/1.3/docs/jsobject.html
import netscape.javascript.*;
import java.applet.*;
import java.awt.*;
class MyApplet extends Applet {
public void init() {
JSObject win = JSObject.getWindow(this);
JSObject doc = (JSObject) win.getMember("document");
JSObject loc = (JSObject) doc.getMember("location");
String s = (String) loc.getMember("href"); // document.location.href
win.call("f", null); // Call f() in HTML page -
How advantages of "Call By Reference" can be implemented using Java
As I know that java doesnot support "Call By Reference" as C++
does.
I want to know that how advantages of Call by Reference can be
implemented using Java.There is some misunderstanding here. Method arguments in Java are passed by value. However, if you pass a reference (to an object) by value, you can still modify the object that the (copy of the) reference points to.
public void method1() {
StringBuffer buf = new StringBuffer();
// Here, method2 cannot change the value of the variable buf,
// but it can modify the object that buf points to.
method2(buf);
public void method2(StringBuffer sb) {
// You can modify the StringBuffer.
sb.append("hello");
// But this is useless, it will not change the variable buf
// in the calling method.
sb = new StringBuffer();
}Jesper -
We configure a custom implementation of the JAAS
javax.security.auth.login.Configuration class for our applications security
framework in JRE_LIB/security/java.security using the entry
login.configuration.provider=com.foo.SecurityConfiguration
However, this does not seem get picked up and the configuration provider
class instead seems to default to
weblogic.security.service.ServerConfiguration
instead.
Has anyone else seen this?
We're using the JDK bundled with Weblogic 8.1
TIA for your helpThanks for all the posting re. this issue....
I think the way Weblogic implemented "support" for JAAS in 8.1 totally
blows. In fact, when I asked BEA support about this, they basically sent me
an email saying that "Weblogic owns the JAAS configuration" so if you have a
security framework that is application server agnostic, but leverages JAAS
then you are screwed when deploying on Weblogic 8.1.
I looked for a workaround and believe that instead of using an entry in
java.security for your custom configuration class, if you set the JVM
parameter
-Dlogin.configuration.provider=com.foo.SecurityConfiguration
then what happens is that the Weblogic custom class
weblogic.security.service.ServerConfiguration is invoked by JAAS. It tries
to load the login module configuration and if that fails, it delegates to
com.foo.SecurityConfiguration. So this should enable both the weblogic
security framework and a custom security framework that are both based on
JAAS
I'm currently testing this out
"Lloyd Fernandes" <[email protected]> wrote in message
news:[email protected]...
>
Robert Greig <[email protected]> wrote:
Lloyd Fernandes wrote:
"Lloyd Fernandes" <[email protected]> wrote:
"Prashant Nayak" <[email protected]> wrote:
We configure a custom implementation of the JAAS
javax.security.auth.login.Configuration class for our applications
security
framework in JRE_LIB/security/java.security using the entry
login.configuration.provider=com.foo.SecurityConfiguration
However, this does not seem get picked up and the configuration
provider
class instead seems to default to
weblogic.security.service.ServerConfiguration
instead.
Has anyone else seen this?
We're using the JDK bundled with Weblogic 8.1
TIA for your help
As per documentation in the API JAVADOCS forjavax.security.auth.login.Configuration
>>>>
>>>>
The default Configuration implementation can be changed by settingthe
value of
the "login.configuration.provider" security property (in the Java
security
properties
file) to the fully qualified name of the desired Configurationimplementation
class. The Java security properties file is located in the file named
<JAVA_HOME>/lib/security/java.security,
where <JAVA_HOME> refers to the directory where the JDK was installed.
Have you tried to use a startup class to set the configuration providerusing
javax.security.auth.login.setConfiguration(YourConfigClass);
Weblogic probably uses this to set the configuration class to it'sown.
You have to consider whether this is really something you want to do
however. If you want to get WLS to use a custom authenticator use its
SSPIs. You can configure the order etc. in the admin console.
By overriding the configuration you override it for the server as a
whole which can mean for example that you cannot login to the admin
console. Having said this, from memory, I believe that the property is
ignored in WLS. However you can still call
Configuration.setConfiguration if you really want to.
The fact that there is a "global static" in the Configuration class is
a
Bad Thing IMHO, that was never really designed for an app server
environment.
Robert
If it is a bad thing to have a static how come Weblogic uses it instead ofthe
standard way of modifying the property in java security file - it isbecause
weblogic wants it's own way of implementing instead of using using the'plugable
module' architecture of JAAS.
When weblogic advertised that it will support JAAS the impression was thatWeblogic
would provide a login module that will implement the security mechanism itwanted
- instead it went it's own way.
Also consider the following
1. JAAS specifies a mechanism for multiple configurations based on a'application'.
This is not possible in the current 'weblogic security mechanism'
2. Weblogic says it supports JAAS but what it does not tell you is that inorder
to use available login modules you have to write a whole bunch of code tosupport
principal validators and authenticators. (I begin to wonder if write oncedeploy
anywhere is not part of Sun's certification process anymore) -
How to refernce the set in a implementation of java.util.AbstractSet?
Hi, I have to extend abstract set and so I have to overwrite the add
method. I want to use the provided equal function,
to do the duplicate checking. But since the equal method takes only one parameter, I can't use an own collection class to manage the content.
So how can I access the default set, to add an element?
Thanks a lot in advance.
Greetings MichaelHi, I had study the source-code and it seems that I have to implement a own structure to store the data (or use another collection).
The equal method is only suitable to compare the other collection and to prevent adding itself to it.
So the add-method must do the duplicate checking by calling contains().
Every other method uses the iterator-method, which itself remains abstract. So this is the vital method.
By the way, I had to extend this class to get a set, that remains the order of adding (which Hash- and TreeSet don't).
Greetings Michael
Maybe you are looking for
-
Busting does not work after XDOLOAD to different instance
Oralce report - output XML template RTF burst control file all work in one instance, but after using XDOLOAD to move to another application instance on the same server, the bursting fails with a nullpointer.exception I have checked the OPP processor
-
Jnlp file shown as XML in Internet Explorer
My problem is somewhat complex and have given me a headache while it seem to be a completely erratic behaviour. (Erratic, not over time, but over different computers.) The main trouble is that I've got two separate webservers serving jnlp files for a
-
Can I use my AirPort express to create a wireless network in my uni room?
So, I'm going to university in september and my room has an ethernet port to connect to the internet. If I buy an AirPort express, can I plug it into the ethernet port to create a wirelss network in my room?
-
Day Wise Depreciation Calculation Issue
Hi Team, I have an issue regarding day wise depreciation calculation. I have selected Dep for the Day check box and it is calculating day wise depreciation but here it is taking as 366 days for base it should be 365 days (2011 is we have only 365 day
-
HT4236 HOW CAN YOU VIEW PHOTOS ON IPHONE IN CHRONOLOGICAL ORDER AS THEY APPEAR IN THE DESKTOP?
When photos are sync'd on my iphone, they appear in random order. But on my computer desktop, they are identified in chronological (dated) order. How can i get the photos to follow the same chornological order on the phone and ipad?