org.cryptacular.x509.dn.RDN Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.apache.cxf Show documentation
Show all versions of org.apache.cxf Show documentation
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.
/* 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;
}
}