|
Oracle Fusion Middleware Java API Reference for Oracle Service Bus 11g Release 1 (11.1.1.3) E15033-01 |
||||||||
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 OSB. 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 |
javax.security.auth.Subject |
getSubject() Gets the client request subject. |
javax.security.auth.Subject |
getSubject(Ref serviceAccount) Gets the JAAS subject according to the service account policy. |
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 accountCredentialNotFoundException
- if there is any error while resolving the username/passwordjava.lang.IllegalArgumentException
- if serviceAccount is nulljavax.security.auth.Subject getSubject(Ref serviceAccount) throws CredentialNotFoundException
Security.runAs(javax.security.auth.Subject,java.security.PrivilegedAction)
to push the subject on the thread.serviceAccount
- a reference to the endpoint’s service accountCredentialNotFoundException
- if there is any error while resolving the subjectjava.lang.IllegalArgumentException
- if serviceAccount is nulljavax.security.auth.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 subjectweblogic.security.KeyPairCredential getKeyPair() throws CredentialNotFoundException
CredentialNotFoundException
- if there is any error while resolving the key-pairRef getServiceKeyProvider()
|
Oracle Fusion Middleware Java API Reference for Oracle Service Bus 11g Release 1 (11.1.1.3) E15033-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |