Package com.oracle.bmc.auth
Interface X509CertificateSupplier
-
- All Known Implementing Classes:
URLBasedX509CertificateSupplier
public interface X509CertificateSupplier
An interface to provide X509 certificate for a federated client.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
X509CertificateSupplier.CertificateAndPrivateKeyPair
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description X509Certificate
getCertificate()
Deprecated.usegetCertificateAndKeyPair()
insteadX509CertificateSupplier.CertificateAndPrivateKeyPair
getCertificateAndKeyPair()
Returns the X509 certificate and private key.RSAPrivateKey
getPrivateKey()
Deprecated.usegetCertificateAndKeyPair()
instead
-
-
-
Method Detail
-
getCertificate
@Deprecated X509Certificate getCertificate()
Deprecated.usegetCertificateAndKeyPair()
insteadGets the certificate- Returns:
- The certificate, must not be null
-
getPrivateKey
@Deprecated RSAPrivateKey getPrivateKey()
Deprecated.usegetCertificateAndKeyPair()
insteadCorresponding private key of the certificate.You must implement this method for leaf certificates (to sign the request made to the auth service to get a security token). For intermediate certificates, you can return null.
- Returns:
- The private key
-
getCertificateAndKeyPair
X509CertificateSupplier.CertificateAndPrivateKeyPair getCertificateAndKeyPair()
Returns the X509 certificate and private key.The X509 certificate will always be valid. The private key may be null for intermediate certificates. For leaf certificates, the private key will always be valid.
- Returns:
- The certificate and private key pair.
-
-