Bug 3171 - add RFC 2253 principal name to JAAS subject?
: add RFC 2253 principal name to JAAS subject?
Status: NEW
: Java WS Security
Authentication
: 4.0.3
: PC Linux
: P3 enhancement
: ---
Assigned To:
:
:
:
:
  Show dependency treegraph
 
Reported: 2005-04-14 13:32 by
Modified: 2006-10-11 15:37 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2005-04-14 13:32:45
With the X500Principal class, it is possible to obtain a RFC 2253 compliant DN. 

Perhaps it would be useful to introduce a convenience method to service/authz
programmers (S.Meder suggests to add it to the JAAS subject) and maybe even to
eventually introduce this as an available way to represent DNs in gridmap files
etc.


import javax.security.auth.x500.X500Principal

X509Certificate userx509 = null;

// get userx509 

X500Principal userx500 = userx509.getIssuerX500Principal();
subjectName = userx500.getName();
------- Comment #1 From 2005-04-14 15:50:45 -------
The Shibboleth integration will use this form:

getName(X500Principal.CANONICAL)
------- Comment #2 From 2005-04-14 17:51:13 -------
Would string representation of the DN in RFC 2253 format be ok?