public final class CredentialsFactory
extends java.lang.Object
Subject.
This class is not intended to be instantiated or extended by clients.
| Constructor and Description |
|---|
CredentialsFactory() |
| Modifier and Type | Method and Description |
|---|---|
static IPrivateCredential |
privateCredential(javax.crypto.spec.PBEKeySpec privateKey,
java.lang.String providerID)
Login modules can use this method to create new private credentials.
|
static IPublicCredential |
publicCredential(java.lang.String name,
java.security.Principal[] roles,
java.lang.String providerID)
Login modules can use this method to create new public credentials as a result
of the login process.
|
static IPublicCredential |
publicCredential(java.lang.String name,
java.security.Principal primaryRole,
java.lang.String providerID)
Login modules can use this method to create new public credentials as a result
of the login process.
|
public static IPublicCredential publicCredential(java.lang.String name, java.security.Principal primaryRole, java.lang.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 IDSubject.getPublicCredentials()public static IPublicCredential publicCredential(java.lang.String name, java.security.Principal[] roles, java.lang.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 IDSubject.getPublicCredentials()public static IPrivateCredential privateCredential(javax.crypto.spec.PBEKeySpec privateKey, java.lang.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 IDSubject.getPrivateCredentials()
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.