|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CredentialCallback
Transport providers get an instance of this callback interface from ALSB. The transport provider can call its methods to fetch a credential used for outbound authentication.
Method Summary | |
---|---|
weblogic.security.KeyPairCredential |
getKeyPair()
Returns a key-pair credential used for outbound SSL client authentication. |
Subject |
getSubject()
Gets the client request subject. |
UsernamePassword |
getUsernamePassword(Ref serviceAccount)
Gets the username/password according to the service account policy. |
weblogic.security.UsernameAndPassword |
getUsernamePasswordCredential(Ref serviceAccount)
Deprecated. Use getUsernamePassword(com.bea.wli.config.Ref) instead |
Method Detail |
---|
UsernamePassword getUsernamePassword(Ref serviceAccount) throws CredentialNotFoundException
serviceAccount
- a reference to the endpoint’s service account
CredentialNotFoundException
- if there is any error while resolving the
username/password
IllegalArgumentException
- if serviceAccount is nullweblogic.security.UsernameAndPassword getUsernamePasswordCredential(Ref serviceAccount) throws CredentialNotFoundException
getUsernamePassword(com.bea.wli.config.Ref)
instead
serviceAccount
- a reference to the endpoint’s service account
CredentialNotFoundException
- if there is any error while resolving the
username/password
IllegalArgumentException
- if serviceAccount is nullSubject getSubject() throws CredentialNotFoundException
The transport provider can use this subject for JAAS-based outbound authentication.
The transport provider can call
Security.runAs(javax.security.auth.Subject, java.security.PrivilegedAction)
to push the subject on the thread.
Note: transport providers should not rely on the subject on the thread at the time the provider is invoked.
CredentialNotFoundException
- if there is any error while resolving the subjectweblogic.security.KeyPairCredential getKeyPair() throws CredentialNotFoundException
CredentialNotFoundException
- if there is any error while resolving the
key-pair
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |