Java Doc for GSSNameImpl.java in  » 6.0-JDK-Modules-sun » security » sun » security » jgss » 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 » 6.0 JDK Modules sun » security » sun.security.jgss 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   sun.security.jgss.GSSNameImpl

GSSNameImpl
public class GSSNameImpl implements GSSName(Code)
This is the implementation class for GSSName. Conceptually the GSSName is a container with mechanism specific name elements. Each name element is a representation of how that particular mechanism would canonicalize this principal. Generally a GSSName is created by an application when it supplies a sequence of bytes and a nametype that helps each mechanism decide how to interpret those bytes. It is not necessary to create name elements for each available mechanism at the time the application creates the GSSName. This implementation does this lazily, as and when name elements for mechanisms are required to be handed out. (Generally, other GSS classes like GSSContext and GSSCredential request specific elements depending on the mechanisms that they are dealing with.) Assume that getting a mechanism to parse the applciation specified bytes is an expensive call. When a GSSName is canonicalized wrt some mechanism, it is supposed to discard all elements of other mechanisms and retain only the element for this mechanism. In GSS terminology this is called a Mechanism Name or MN. This implementation tries to retain the application provided bytes and name type just in case the MN is asked to produce an element for a mechanism that is different. When a GSSName is to be exported, the name element for the desired mechanism is converted to a byte representation and written out. It might happen that a name element for that mechanism cannot be obtained. This happens when the mechanism is just not supported in this GSS-API or when the mechanism is supported but bytes corresponding to the nametypes that it understands are not available in this GSSName. This class is safe for sharing. Each retrieval of a name element from getElement() might potentially add a new element to the hashmap of elements, but getElement() is synchronized.
author:
   Mayank Upadhyay
version:
   1.24, 05/05/07
since:
   1.4



Constructor Summary
 GSSNameImpl(GSSManagerImpl gssManager, GSSNameSpi mechElement)
    
 GSSNameImpl(GSSManagerImpl gssManager, Object appName, Oid appNameType)
    
 GSSNameImpl(GSSManagerImpl gssManager, Object appName, Oid appNameType, Oid mech)
    

Method Summary
public  GSSNamecanonicalize(Oid mech)
    
public  booleanequals(GSSName other)
     This method may return false negatives.
public  booleanequals(Object another)
    
public  byte[]export()
     Returns a flat name representation for this object.
public synchronized  GSSNameSpigetElement(Oid mechOid)
    
 Set<GSSNameSpi>getElements()
    
public  OidgetStringNameType()
    
public  inthashCode()
     Returns a hashcode value for this GSSName.
public  booleanisAnonymous()
    
public  booleanisMN()
    
public  StringtoString()
    
static  GSSNameImplwrapElement(GSSManagerImpl gssManager, GSSNameSpi mechElement)
    


Constructor Detail
GSSNameImpl
GSSNameImpl(GSSManagerImpl gssManager, GSSNameSpi mechElement)(Code)



GSSNameImpl
GSSNameImpl(GSSManagerImpl gssManager, Object appName, Oid appNameType) throws GSSException(Code)



GSSNameImpl
GSSNameImpl(GSSManagerImpl gssManager, Object appName, Oid appNameType, Oid mech) throws GSSException(Code)




Method Detail
canonicalize
public GSSName canonicalize(Oid mech) throws GSSException(Code)



equals
public boolean equals(GSSName other) throws GSSException(Code)
This method may return false negatives. But if it says two names are equals, then there is some mechanism that authenticates them as the same principal.



equals
public boolean equals(Object another)(Code)



export
public byte[] export() throws GSSException(Code)
Returns a flat name representation for this object. The name format is defined in RFC 2743:
 Length           Name          Description
 2               TOK_ID          Token Identifier
 For exported name objects, this
 must be hex 04 01.
 2               MECH_OID_LEN    Length of the Mechanism OID
 MECH_OID_LEN    MECH_OID        Mechanism OID, in DER
 4               NAME_LEN        Length of name
 NAME_LEN        NAME            Exported name; format defined in
 applicable mechanism draft.
 
Note that it is not required to canonicalize a name before calling export(). i.e., the name need not be an MN. If it is not an MN, an implementation defined algorithm can be used for choosing the mechanism which should export this name. the flat name representation for this object
exception:
  GSSException - with major codes NAME_NOT_MN, BAD_NAME,BAD_NAME, FAILURE.



getElement
public synchronized GSSNameSpi getElement(Oid mechOid) throws GSSException(Code)



getElements
Set<GSSNameSpi> getElements()(Code)



getStringNameType
public Oid getStringNameType() throws GSSException(Code)



hashCode
public int hashCode()(Code)
Returns a hashcode value for this GSSName. a hashCode value



isAnonymous
public boolean isAnonymous()(Code)



isMN
public boolean isMN()(Code)



toString
public String toString()(Code)



wrapElement
static GSSNameImpl wrapElement(GSSManagerImpl gssManager, GSSNameSpi mechElement) throws GSSException(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.