Package eu.emi.security.authn.x509.proxy
Class ProxyCSRInfo
java.lang.Object
eu.emi.security.authn.x509.proxy.ProxyCSRInfo
A class to get the information from the proxy certificate request.
- Author:
- J. Hahkala, K. Benedyczak
-
Constructor Summary
ConstructorsConstructorDescriptionProxyCSRInfo
(org.bouncycastle.pkcs.PKCS10CertificationRequest csr) Generates new instance of this class using the Certificate Signing Request -
Method Summary
Modifier and TypeMethodDescriptionGets the requested RFC proxy extension policy OID and octets of the policy.Returns the proxy path length limit set in the Certificate Signing Request.String[][]
Gets the proxy source restriction data from the Certificate Signing Request.String[][]
Gets the proxy target restriction data from the Certificate Signing Request.Returns an requested URL of the proxy tracing issuer.Returns a requested URL of the proxy tracing subject.The type of the proxy certificate requested is returned or null if can not be determined.Returns the SAML extension from the certificate chain.Used to check whether the Certificate Signing Request is for a limited proxy or not.
-
Constructor Details
-
ProxyCSRInfo
public ProxyCSRInfo(org.bouncycastle.pkcs.PKCS10CertificationRequest csr) throws CertificateException Generates new instance of this class using the Certificate Signing Request- Parameters:
csr
- certificate signing request- Throws:
CertificateException
- if the Certificate Signing Request is invalid
-
-
Method Details
-
getProxyType
The type of the proxy certificate requested is returned or null if can not be determined. In principle the null response means that the DN is not a valid LEGACY proxy DN, and that either RFC or DRAFT proxy should be generated.- Returns:
- the proxy type
-
isLimited
Used to check whether the Certificate Signing Request is for a limited proxy or not.- Returns:
- null if not set
-
getPolicy
Gets the requested RFC proxy extension policy OID and octets of the policy. See RFC3820. Policy can be null in case the OID in it self defines the behavior, like with "inherit all" policy or "independent" policy.- Returns:
- the requested policy or null if not set
-
getProxyTracingIssuer
Returns an requested URL of the proxy tracing issuer.- Returns:
- The proxy tracing issuer URL in String format, or null if was not requested.
-
getProxyTracingSubject
Returns a requested URL of the proxy tracing subject.- Returns:
- The proxy tracing subject URL in String format, or null if was not requested.
-
getSAMLExtension
Returns the SAML extension from the certificate chain.- Returns:
- The SAML assertion in String format or null if not set
-
getProxyPathLimit
Returns the proxy path length limit set in the Certificate Signing Request. Returns an Integer.MAX_VALUE value if length is set to be unlimited.- Returns:
- the requested proxy path length.
-
getProxySourceRestrictions
Gets the proxy source restriction data from the Certificate Signing Request. The returned array has as the first item the array of allowed namespaces and as the second item the array of excluded namespaces.- Returns:
- null if the extension was not set
-
getProxyTargetRestrictions
Gets the proxy target restriction data from the Certificate Signing Request. The returned array has as the first item the array of allowed namespaces and as the second item the array of excluded namespaces.- Returns:
- null if the extension was not set
-