Java Doc for Util.java in  » EJB-Server-geronimo » plugins » org » apache » geronimo » corba » util » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » EJB Server geronimo » plugins » org.apache.geronimo.corba.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.geronimo.corba.util.Util

Util
final public class Util (Code)
Various utility functions.

Note: #getORB() and #getCodec() rely on UtilInitializer to initialze the ORB and codec.
version:
   $Rev: 503493 $ $Date: 2007-02-04 13:47:55 -0800 (Sun, 04 Feb 2007) $
See Also:   UtilInitializer





Method Summary
public static  StringbuildScopedUserName(String user, String domain)
    
public static  StringbyteToString(byte[] data)
    
public static  String[]createCorbaIds(Class type)
    
public static  StringdecodeGSSExportName(byte[] name_tok)
     This function reads a name from a byte array which was created by the gssExportName() method.
Parameters:
  name_tok - The GSS name token.
public static  booleandecodeGSSUPToken(Codec codec, byte[] token_arr, InitialContextToken gssup_tok)
     Decode an GSSUP InitialContextToken from a GSSToken.
Parameters:
  codec - The codec to do the encoding of the Any.
Parameters:
  gssup_tok - The InitialContextToken struct to fill in the decoded values.
public static  StringdecodeGeneralName(byte[] name)
    
public static  StringdecodeOID(byte[] oid)
    
public static  DERObjectIdentifierdecodeOIDDERObjectIdentifier(byte[] oid)
    
public static  byte[]encodeGSSExportName(String oid, String name)
     This method encodes a name as if it was encoded using the GSS-API gss_export_name() function call (see RFC 2743, page 84). The oid to indicate names of this format is:
{1(iso), 3(org), 6(dod), 1(internet), 5(security), 6(nametypes), 4(gss-api-exported-name)}
The token has the following format:

OffsetMeaningValue
0token id0x04
1token id0x01
2oid lengthhi-byte (len/0xFF)
3oid lengthlo-byte (len%0xFF)
4oidoid:1.3.6.1.5.6.4
n+0name lengthlen/0xFFFFFF
n+1name length(len%0xFFFFFF)/0xFFFF
n+2name length((len%0xFFFFFF)%0xFFFF)/0xFF
n+3name length((len%0xFFFFFF)%0xFFFF)%0xFF
n+4namefoo

Parameters:
  oid - The oid of the mechanism this name is exported from.
Parameters:
  name - The name to be exported.
public static  byte[]encodeGSSUPToken(ORB orb, Codec codec, String user, String pwd, String target)
     Encode a mechanism independent initial context token (GSSToken).
public static  byte[]encodeGeneralName(String name)
    
public static  byte[]encodeGeneralName(X509Name x509Name)
    
public static  byte[]encodeGeneralName(GeneralName generalName)
    
public static  byte[]encodeOID(String oid)
    
public static  byte[]encodeOID(DERObjectIdentifier oid)
    
public static  StringextractUserNameFromScopedName(byte[] scopedNameBytes)
     See csiv2 spec 16.2.5 par.
public static  StringextractUserNameFromScopedName(String scopedUserName)
    
public static  CodecgetCodec()
    
public static  ObjectgetEJBProxy(ProxyInfo info)
    
public static  HandleDelegategetHandleDelegate()
    
public static  ORBgetORB()
    
public static  ORBConfigurationgetRegisteredORB(String id)
    
public static  MapmapMethodToOperation(Class intfClass)
    
public static  MapmapOperationToMethod(Class intfClass)
    
public static  ObjectreadObject(Class type, InputStream in)
    
public static  voidregisterORB(String id, ORBConfiguration orb)
    
public static  voidsetORB(ORB orb)
    
public static  voidthrowException(Method method, InputStream in)
    
public static  voidunregisterORB(String id)
    
public static  voidwriteObject(Class type, Object object, OutputStream out)
    
public static  OutputStreamwriteUserException(Method method, ResponseHandler reply, Exception exception)
    



Method Detail
buildScopedUserName
public static String buildScopedUserName(String user, String domain)(Code)



byteToString
public static String byteToString(byte[] data)(Code)



createCorbaIds
public static String[] createCorbaIds(Class type)(Code)



decodeGSSExportName
public static String decodeGSSExportName(byte[] name_tok)(Code)
This function reads a name from a byte array which was created by the gssExportName() method.
Parameters:
  name_tok - The GSS name token. The name from the GSS name token.



decodeGSSUPToken
public static boolean decodeGSSUPToken(Codec codec, byte[] token_arr, InitialContextToken gssup_tok)(Code)
Decode an GSSUP InitialContextToken from a GSSToken.
Parameters:
  codec - The codec to do the encoding of the Any.
Parameters:
  gssup_tok - The InitialContextToken struct to fill in the decoded values. Return true when decoding was successful, false otherwise.



decodeGeneralName
public static String decodeGeneralName(byte[] name) throws IOException(Code)



decodeOID
public static String decodeOID(byte[] oid) throws IOException(Code)



decodeOIDDERObjectIdentifier
public static DERObjectIdentifier decodeOIDDERObjectIdentifier(byte[] oid) throws IOException(Code)



encodeGSSExportName
public static byte[] encodeGSSExportName(String oid, String name)(Code)
This method encodes a name as if it was encoded using the GSS-API gss_export_name() function call (see RFC 2743, page 84). The oid to indicate names of this format is:
{1(iso), 3(org), 6(dod), 1(internet), 5(security), 6(nametypes), 4(gss-api-exported-name)}
The token has the following format:

OffsetMeaningValue
0token id0x04
1token id0x01
2oid lengthhi-byte (len/0xFF)
3oid lengthlo-byte (len%0xFF)
4oidoid:1.3.6.1.5.6.4
n+0name lengthlen/0xFFFFFF
n+1name length(len%0xFFFFFF)/0xFFFF
n+2name length((len%0xFFFFFF)%0xFFFF)/0xFF
n+3name length((len%0xFFFFFF)%0xFFFF)%0xFF
n+4namefoo

Parameters:
  oid - The oid of the mechanism this name is exported from.
Parameters:
  name - The name to be exported. The byte array representing the exported name object.



encodeGSSUPToken
public static byte[] encodeGSSUPToken(ORB orb, Codec codec, String user, String pwd, String target)(Code)
Encode a mechanism independent initial context token (GSSToken). Defined in [IETF RFC 2743] Section 3.1, "Mechanism-Independent token Format" pp. 81-82.
OffsetMeaning
0ASN1 tag
1token length (<128)
2mechanism oid
nmechanism specific token (e.g. GSSUP::InitialContextToken)
Currently only one mechanism specific token is supported: GSS username password (GSSUP::InitialContextToken).
Parameters:
  orb - The orb to get an Any from.
Parameters:
  codec - The codec to do the encoding of the Any.
Parameters:
  user - The username.
Parameters:
  pwd - The password of the user.
Parameters:
  target - The target name. The byte array of the ASN1 encoded GSSToken.



encodeGeneralName
public static byte[] encodeGeneralName(String name) throws IOException(Code)



encodeGeneralName
public static byte[] encodeGeneralName(X509Name x509Name) throws IOException(Code)



encodeGeneralName
public static byte[] encodeGeneralName(GeneralName generalName) throws IOException(Code)



encodeOID
public static byte[] encodeOID(String oid) throws IOException(Code)



encodeOID
public static byte[] encodeOID(DERObjectIdentifier oid) throws IOException(Code)



extractUserNameFromScopedName
public static String extractUserNameFromScopedName(byte[] scopedNameBytes) throws UnsupportedEncodingException(Code)
See csiv2 spec 16.2.5 par. 63-64. We extract the username if any and un-escape any escaped \ and @ characters.
Parameters:
  scopedNameBytes -
throws:
  UnsupportedEncodingException -



extractUserNameFromScopedName
public static String extractUserNameFromScopedName(String scopedUserName)(Code)



getCodec
public static Codec getCodec()(Code)



getEJBProxy
public static Object getEJBProxy(ProxyInfo info)(Code)



getHandleDelegate
public static HandleDelegate getHandleDelegate() throws NamingException(Code)



getORB
public static ORB getORB()(Code)



getRegisteredORB
public static ORBConfiguration getRegisteredORB(String id)(Code)



mapMethodToOperation
public static Map mapMethodToOperation(Class intfClass)(Code)



mapOperationToMethod
public static Map mapOperationToMethod(Class intfClass)(Code)



readObject
public static Object readObject(Class type, InputStream in)(Code)



registerORB
public static void registerORB(String id, ORBConfiguration orb)(Code)



setORB
public static void setORB(ORB orb) throws UserException(Code)



throwException
public static void throwException(Method method, InputStream in) throws Throwable(Code)



unregisterORB
public static void unregisterORB(String id)(Code)



writeObject
public static void writeObject(Class type, Object object, OutputStream out)(Code)



writeUserException
public static OutputStream writeUserException(Method method, ResponseHandler reply, Exception exception) throws Exception(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.