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 cryptacular Show documentation
Show all versions of cryptacular Show documentation
The spectacular complement to the Bouncy Castle crypto API for Java.
/* 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