Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.equinox.security.auth.credentials
Class CredentialsFactory


java.lang.Object
  extended by 
org.eclipse.equinox.security.auth.credentials.CredentialsFactory

public final class CredentialsFactory
extends Object

This factory can be used by login modules to create Equinox public and private credentials. It is expected that as a result of successful login credentials are added to the Subject .

This class is not intended to be instantiated or extended by clients.

Restriction:
This class is not intended to be subclassed by clients.
Restriction:
This class is not intended to be instantiated by clients.

Constructor Summary
CredentialsFactory ()
           
 
Method Summary
static  IPrivateCredential privateCredential ( PBEKeySpec privateKey, String providerID)
          Login modules can use this method to create new private credentials.
static  IPublicCredential publicCredential ( String name, Principal[] roles, String providerID)
          Login modules can use this method to create new public credentials as a result of the login process.
static  IPublicCredential publicCredential ( String name, Principal primaryRole, String providerID)
          Login modules can use this method to create new public credentials as a result of the login process.
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CredentialsFactory

public CredentialsFactory()
Method Detail

publicCredential

public static 
IPublicCredential publicCredential(
String name,
                                                 
Principal primaryRole,
                                                 
String providerID)
Login modules can use this method to create new public credentials as a result of the login process.

Parameters:
name - user's name
primaryRole - user's primary role, null if not available
providerID - the ID of the creator of this public credential; if provider was described as an extension, use the extension ID
Returns:
new public credential
See Also:
Subject.getPublicCredentials()

publicCredential

public static 
IPublicCredential publicCredential(
String name,
                                                 
Principal[] roles,
                                                 
String providerID)
Login modules can use this method to create new public credentials as a result of the login process.

Parameters:
name - user's name
roles - user's roles, null if not available
providerID - the ID of the creator of this public credential; if provider was described as an extension, use the extension ID
Returns:
new public credential
See Also:
Subject.getPublicCredentials()

privateCredential

public static 
IPrivateCredential privateCredential(
PBEKeySpec privateKey,
                                                   
String providerID)
Login modules can use this method to create new private credentials.

Parameters:
privateKey - the private key to be stored in this credential
providerID - the ID of the creator of this private credential; if provider was described as an extension, use the extension ID
Returns:
new private credential
See Also:
Subject.getPrivateCredentials()

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire