|
Eclipse Platform Release 3.4 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.equinox.security.auth.credentials.CredentialsFactory
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.
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 |
public CredentialsFactory()
Method Detail |
public static IPublicCredential publicCredential(String name, Principal primaryRole, String providerID)
name
- user's nameprimaryRole
- user's primary role, null
if not availableproviderID
- the ID of the creator of this public credential; if provider was
described as an extension, use the extension ID
Subject.getPublicCredentials()
public static IPublicCredential publicCredential(String name, Principal[] roles, String providerID)
name
- user's nameroles
- user's roles, null
if not availableproviderID
- the ID of the creator of this public credential; if provider was
described as an extension, use the extension ID
Subject.getPublicCredentials()
public static IPrivateCredential privateCredential(PBEKeySpec privateKey, String providerID)
privateKey
- the private key to be stored in this credentialproviderID
- the ID of the creator of this private credential; if provider was
described as an extension, use the extension ID
Subject.getPrivateCredentials()
|
Eclipse Platform Release 3.4 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.