Class X509NameScriptService

  • All Implemented Interfaces:
    org.xwiki.script.service.ScriptService

    @Component
    @Named("crypto.x509name")
    @Singleton
    public class X509NameScriptService
    extends Object
    implements org.xwiki.script.service.ScriptService
    Helper script service to create X509 names.
    Since:
    8.4RC1
    Version:
    $Id: f81312ad4b56937542a85d64c4b48b0bd2ff4aa7 $
    • Constructor Detail

      • X509NameScriptService

        public X509NameScriptService()
    • Method Detail

      • createX509Rfc822Name

        public org.xwiki.crypto.pkix.params.x509certificate.extension.X509Rfc822Name createX509Rfc822Name​(String email)
        Create a new X509Rfc822Name.
        Parameters:
        email - the name.
        Returns:
        an typed X509GeneralName
      • createX509DirectoryName

        public org.xwiki.crypto.pkix.params.x509certificate.extension.X509DirectoryName createX509DirectoryName​(String dn)
        Create a new X509DirectoryName.
        Parameters:
        dn - the name.
        Returns:
        an typed X509GeneralName
      • createX509IpAddress

        public org.xwiki.crypto.pkix.params.x509certificate.extension.X509IpAddress createX509IpAddress​(String ip)
        Create a new X509IpAddress.
        Parameters:
        ip - the name.
        Returns:
        an typed X509GeneralName
      • createX509URI

        public org.xwiki.crypto.pkix.params.x509certificate.extension.X509URI createX509URI​(String uri)
        Create a new X509URI.
        Parameters:
        uri - the name.
        Returns:
        an typed X509GeneralName