|
|||||||||
| 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. |
Ref |
getServiceKeyProvider()
Returns a reference to the service key provider used by this CredentialCallback or null if the CredentialCallback does not have a service key provider |
Subject |
getSubject()
Gets the client request subject. |
UsernamePassword |
getUsernamePassword(Ref serviceAccount)
Gets the username/password according to the service account policy. |
| 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 null
Subject 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 subject
weblogic.security.KeyPairCredential getKeyPair()
throws CredentialNotFoundException
CredentialNotFoundException - if there is any error while resolving the
key-pairRef getServiceKeyProvider()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||