All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.cryptacular.x509.dn.RDN Maven / Gradle / Ivy

Go to download

Apache CXF is an open-source services framework that aids in the development of services using front-end programming APIs, like JAX-WS and JAX-RS.

There is a newer version: 62
Show newest version
/* See LICENSE for licensing and NOTICE for copyright. */
package org.cryptacular.x509.dn;

/**
 * Simple implementation of the X.501 RelativeDistinguishedName type described in section 4.1.2.4 of RFC 2459.
 *
 * @author  Middleware Services
 */
public class RDN
{

  /** RDN attributes. */
  private final Attributes attributes;


  /**
   * Creates a new instance with given attributes.
   *
   * @param  attributes  Container for one or more AttributeTypeAndValues.
   */
  public RDN(final Attributes attributes)
  {
    if (attributes == null) {
      throw new IllegalArgumentException("Attributes cannot be null");
    }
    this.attributes = attributes;
  }


  /** @return  RDN attributes. */
  public Attributes getAttributes()
  {
    return attributes;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy