Package eu.emi.security.authn.x509.proxy
Interface ProxyCSR
-
- All Known Implementing Classes:
ProxyCSRImpl
public interface ProxyCSRWraps information about a new proxy certificate signing request which was generated by theProxyCSRGenerator.- Author:
- K. Benedyczak
- See Also:
ProxyCSRGenerator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.bouncycastle.pkcs.PKCS10CertificationRequestgetCSR()Returns the CSRjava.security.PrivateKeygetPrivateKey()Returns the generated private key of this CSR.booleanhasPrivateKey()
-
-
-
Method Detail
-
getCSR
org.bouncycastle.pkcs.PKCS10CertificationRequest getCSR()
Returns the CSR- Returns:
- the generated CSR
-
getPrivateKey
java.security.PrivateKey getPrivateKey() throws java.lang.IllegalStateExceptionReturns the generated private key of this CSR. If public key was manually set an exception is thrown.- Returns:
- The private key.
- Throws:
java.lang.IllegalStateException- if the private and public keys were not generated
-
hasPrivateKey
boolean hasPrivateKey()
- Returns:
- true if private key was generated and is available through
getPrivateKey()
-
-