| | |
| | | String type = profile.getRelationChildRDNType(r); |
| | | AttributeType atype = DirectoryServer.getAttributeType(type); |
| | | ByteString avalue = ByteString.valueOfUtf8(name); |
| | | dn = dn.child(RDN.create(atype, avalue)); |
| | | dn = dn.child(new RDN(atype, avalue)); |
| | | } |
| | | |
| | | |
| | |
| | | String type = profile.getRelationChildRDNType(r); |
| | | AttributeType atype = DirectoryServer.getAttributeType(type); |
| | | ByteString avalue = ByteString.valueOfUtf8(d.getName()); |
| | | dn = dn.child(RDN.create(atype, avalue)); |
| | | dn = dn.child(new RDN(atype, avalue)); |
| | | } |
| | | |
| | | |
| | |
| | | String rdnStringValue) |
| | | { |
| | | ByteString attrValue = ByteString.valueOfUtf8(rdnStringValue); |
| | | return parentDN.child(RDN.create(rdnAttrType, attrValue)); |
| | | return parentDN.child(new RDN(rdnAttrType, attrValue)); |
| | | } |
| | | } |
| | |
| | | String rdnStringValue) |
| | | { |
| | | ByteString attrValue = ByteString.valueOfUtf8(rdnStringValue); |
| | | return parentDN.child(RDN.create(rdnAttrType, attrValue)); |
| | | return parentDN.child(new RDN(rdnAttrType, attrValue)); |
| | | } |
| | | |
| | | |
| | |
| | | throws CryptoManagerException { |
| | | // Construct the key entry DN. |
| | | final ByteString distinguishedValue = ByteString.valueOfUtf8(ADS_CERTIFICATE_ALIAS); |
| | | final DN entryDN = localTruststoreDN.child(RDN.create(attrKeyID, distinguishedValue)); |
| | | final DN entryDN = localTruststoreDN.child(new RDN(attrKeyID, distinguishedValue)); |
| | | // Construct the search filter. |
| | | final String FILTER_OC_INSTANCE_KEY = "(objectclass=" + ocInstanceKey.getNameOrOID() + ")"; |
| | | // Construct the attribute list. |
| | |
| | | // Construct the key entry DN. |
| | | final ByteString distinguishedValue = ByteString.valueOfUtf8(instanceKeyID); |
| | | final DN entryDN = instanceKeysDN.child( |
| | | RDN.create(attrKeyID, distinguishedValue)); |
| | | new RDN(attrKeyID, distinguishedValue)); |
| | | |
| | | // Check for the entry. If it does not exist, create it. |
| | | final String FILTER_OC_INSTANCE_KEY = "(objectclass=" + ocInstanceKey.getNameOrOID() + ")"; |
| | |
| | | ByteString distinguishedValue = |
| | | ByteString.valueOfUtf8(keyEntry.getKeyID().getStringValue()); |
| | | DN entryDN = secretKeysDN.child( |
| | | RDN.create(attrKeyID, distinguishedValue)); |
| | | new RDN(attrKeyID, distinguishedValue)); |
| | | |
| | | // Set the entry object classes. |
| | | LinkedHashMap<ObjectClass,String> ocMap = new LinkedHashMap<>(2); |
| | |
| | | ByteString distinguishedValue = |
| | | ByteString.valueOfUtf8(keyEntry.getKeyID().getStringValue()); |
| | | DN entryDN = secretKeysDN.child( |
| | | RDN.create(attrKeyID, distinguishedValue)); |
| | | new RDN(attrKeyID, distinguishedValue)); |
| | | |
| | | // Set the entry object classes. |
| | | LinkedHashMap<ObjectClass,String> ocMap = new LinkedHashMap<>(2); |
| | |
| | | for (ByteString value : attr) |
| | | { |
| | | inheritFromDN = inheritFromDN.child( |
| | | RDN.create(subEntry.getInheritFromRDNType(), |
| | | value)); |
| | | new RDN(subEntry.getInheritFromRDNType(), value)); |
| | | break; |
| | | } |
| | | } |
| | |
| | | } |
| | | |
| | | /** |
| | | * Creates a new RDN with the provided information. |
| | | * |
| | | * @param attributeType The attribute type for this RDN. It must |
| | | * not be {@code null}. |
| | | * @param attributeValue The value for this RDN. It must not be |
| | | * {@code null}. |
| | | * |
| | | * @return The RDN created with the provided information. |
| | | */ |
| | | public static RDN create(AttributeType attributeType, ByteString attributeValue) |
| | | { |
| | | return new RDN(attributeType, attributeValue); |
| | | } |
| | | |
| | | /** |
| | | * Retrieves the number of attribute-value pairs contained in this RDN. |
| | | * |
| | | * @return The number of attribute-value pairs contained in this RDN. |
| | |
| | | //Setup the DN to use in the response tests. |
| | | AttributeType attribute = DirectoryServer.getAttributeType("testAttribute"); |
| | | ByteString attributeValue = ByteString.valueOfUtf8("testValue"); |
| | | dn = new DN(new RDN[] { RDN.create(attribute, attributeValue) }); |
| | | dn = new DN(new RDN[] { new RDN(attribute, attributeValue) }); |
| | | } |
| | | |
| | | /** |
| | |
| | | //Setup the DN to use in the response tests. |
| | | AttributeType attribute = DirectoryServer.getAttributeType("testAttribute"); |
| | | ByteString attributeValue = ByteString.valueOfUtf8("testValue"); |
| | | dn = new DN(new RDN[] { RDN.create(attribute, attributeValue) }); |
| | | dn = new DN(new RDN[] { new RDN(attribute, attributeValue) }); |
| | | } |
| | | |
| | | /** |
| | |
| | | //Setup the DN to use in the response tests. |
| | | AttributeType attribute = DirectoryServer.getAttributeType("testAttribute"); |
| | | ByteString attributeValue = ByteString.valueOfUtf8("testValue"); |
| | | dn = new DN(new RDN[] { RDN.create(attribute, attributeValue) }); |
| | | dn = new DN(new RDN[] { new RDN(attribute, attributeValue) }); |
| | | } |
| | | |
| | | /** |
| | |
| | | //Setup the DN to use in the response tests. |
| | | AttributeType attribute = DirectoryServer.getAttributeType("testAttribute"); |
| | | ByteString attributeValue = ByteString.valueOfUtf8("testValue"); |
| | | dn = new DN(new RDN[] { RDN.create(attribute, attributeValue) }); |
| | | dn = new DN(new RDN[] { new RDN(attribute, attributeValue) }); |
| | | } |
| | | |
| | | /** |
| | |
| | | //Setup the DN to use in the response tests. |
| | | AttributeType attribute = DirectoryServer.getAttributeType("testAttribute"); |
| | | ByteString attributeValue = ByteString.valueOfUtf8("testValue"); |
| | | dn = new DN(new RDN[] { RDN.create(attribute, attributeValue) }); |
| | | dn = new DN(new RDN[] { new RDN(attribute, attributeValue) }); |
| | | } |
| | | |
| | | /** |