| | |
| | | import org.opends.server.core.SearchOperation; |
| | | import org.opends.server.loggers.ErrorLogger; |
| | | import org.opends.server.loggers.debug.DebugTracer; |
| | | import org.opends.server.protocols.asn1.ASN1OctetString; |
| | | import org.opends.server.types.Attribute; |
| | | import org.opends.server.types.AttributeBuilder; |
| | | import org.opends.server.types.AttributeType; |
| | | import org.opends.server.types.AttributeValue; |
| | | import org.opends.server.types.Attributes; |
| | | import org.opends.server.types.BackupConfig; |
| | | import org.opends.server.types.BackupDirectory; |
| | | import org.opends.server.types.ByteString; |
| | | import org.opends.server.types.ConditionResult; |
| | | import org.opends.server.types.ConfigChangeResult; |
| | | import org.opends.server.types.DN; |
| | | import org.opends.server.types.DebugLogLevel; |
| | | import org.opends.server.types.DirectoryException; |
| | | import org.opends.server.types.Entry; |
| | | import org.opends.server.types.FilePermission; |
| | | import org.opends.server.types.IndexType; |
| | | import org.opends.server.types.InitializationException; |
| | | import org.opends.server.types.LDIFExportConfig; |
| | | import org.opends.server.types.LDIFImportConfig; |
| | | import org.opends.server.types.LDIFImportResult; |
| | | import org.opends.server.types.ObjectClass; |
| | | import org.opends.server.types.RDN; |
| | | import org.opends.server.types.RestoreConfig; |
| | | import org.opends.server.types.ResultCode; |
| | | import org.opends.server.types.SearchFilter; |
| | | import org.opends.server.types.SearchScope; |
| | | import org.opends.server.types.*; |
| | | import org.opends.server.util.CertificateManager; |
| | | import org.opends.server.util.Validator; |
| | | |
| | |
| | | baseDN, null); |
| | | } |
| | | |
| | | String certAlias = v.getStringValue(); |
| | | String certAlias = v.getValue().toString(); |
| | | ByteString certValue; |
| | | try |
| | | { |
| | |
| | | String.valueOf(entryDN), certAlias); |
| | | throw new DirectoryException(ResultCode.NO_SUCH_OBJECT, message); |
| | | } |
| | | certValue = new ASN1OctetString(cert.getEncoded()); |
| | | certValue = ByteString.wrap(cert.getEncoded()); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | |
| | | true); |
| | | AttributeBuilder builder = new AttributeBuilder(t); |
| | | builder.setOption("binary"); |
| | | builder.add(new AttributeValue(t, certValue)); |
| | | builder.add(AttributeValues.create(t, certValue)); |
| | | attrList = new ArrayList<Attribute>(1); |
| | | attrList.add(builder.toAttribute()); |
| | | userAttrs.put(t, attrList); |
| | |
| | | String rdnStringValue) |
| | | { |
| | | AttributeValue attrValue = |
| | | new AttributeValue(rdnAttrType, rdnStringValue); |
| | | AttributeValues.create(rdnAttrType, rdnStringValue); |
| | | return parentDN.concat(RDN.create(rdnAttrType, attrValue)); |
| | | } |
| | | |
| | |
| | | throw new DirectoryException(ResultCode.CONSTRAINT_VIOLATION, message, |
| | | baseDN, null); |
| | | } |
| | | String certAlias = v.getStringValue(); |
| | | String certAlias = v.getValue().toString(); |
| | | |
| | | try |
| | | { |
| | |
| | | DirectoryServer.getServerErrorResultCode(), message); |
| | | } |
| | | |
| | | byte[] certBytes = i.next().getValueBytes(); |
| | | ByteString certBytes = i.next().getValue(); |
| | | |
| | | if (i.hasNext()) |
| | | { |
| | |
| | | new FileOutputStream(tempFile.getPath(), false); |
| | | try |
| | | { |
| | | outputStream.write(certBytes); |
| | | certBytes.copyTo(outputStream); |
| | | } |
| | | finally |
| | | { |
| | |
| | | throw new DirectoryException(ResultCode.CONSTRAINT_VIOLATION, message, |
| | | baseDN, null); |
| | | } |
| | | String certAlias = v.getStringValue(); |
| | | String certAlias = v.getValue().toString(); |
| | | |
| | | try |
| | | { |