| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Portions Copyright 2006 Sun Microsystems, Inc. |
| | | * Portions Copyright 2006-2007 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | assert debugEnter(CLASS_NAME, "hasAcceptableConfiguration", |
| | | String.valueOf(configEntry), "java.util.List<String>"); |
| | | |
| | | DN configEntryDN = configEntry.getDN(); |
| | | |
| | | |
| | | // Make sure that there is some way to determine the PIN. Look for the PIN |
| | | // in a property, environment variable, file, or configuration attribute, in |
| | | // that order. |
| | | char[] keyStorePIN = null; |
| | | pinSelection: |
| | | { |
| | | int msgID = MSGID_PKCS11_KEYMANAGER_DESCRIPTION_PIN_PROPERTY; |
| | |
| | | } |
| | | else |
| | | { |
| | | keyStorePIN = pinStr.toCharArray(); |
| | | break pinSelection; |
| | | } |
| | | } |
| | |
| | | } |
| | | else |
| | | { |
| | | keyStorePIN = pinStr.toCharArray(); |
| | | break pinSelection; |
| | | } |
| | | } |
| | |
| | | } |
| | | else |
| | | { |
| | | keyStorePIN = pinStr.toCharArray(); |
| | | break pinSelection; |
| | | } |
| | | } |
| | |
| | | configEntry.getConfigAttribute(pinStub); |
| | | if (pinAttr != null) |
| | | { |
| | | keyStorePIN = pinAttr.pendingValue().toCharArray(); |
| | | break pinSelection; |
| | | } |
| | | } |