public String toString() { return "UsmUser[secName="+securityName+ ",authProtocol="+authenticationProtocol+ ",authPassphrase="+authenticationPassphrase+ ",privProtocol="+privacyProtocol+ ",privPassphrase="+privacyPassphrase+ ",localizationEngineID="+getLocalizationEngineID()+"]"; }
public String toString() { return "UsmUser[secName="+securityName+ ",authProtocol="+authenticationProtocol+ ",authPassphrase="+authenticationPassphrase+ ",privProtocol="+privacyProtocol+ ",privPassphrase="+privacyPassphrase+ ",localizationEngineID="+getLocalizationEngineID()+"]"; }
public String toString() { return "UsmUser[secName="+securityName+ ",authProtocol="+authenticationProtocol+ ",authPassphrase="+authenticationPassphrase+ ",privProtocol="+privacyProtocol+ ",privPassphrase="+privacyPassphrase+ ",localizationEngineID="+getLocalizationEngineID()+"]"; }
/** * Creates a user with user name and associated {@link UsmUser}. * @param userName * the user name of the new entry. * @param user * the <code>UsmUser</code> representing the security information of the * user. */ public UsmUserEntry(OctetString userName, UsmUser user) { this.userName = userName; this.usmUser = user; if (user.isLocalized()) { this.engineID = user.getLocalizationEngineID(); if ((user.getAuthenticationProtocol() != null) && (user.getAuthenticationPassphrase() != null)) { authenticationKey = user.getAuthenticationPassphrase().getValue(); if ((user.getPrivacyProtocol() != null) && (user.getPrivacyPassphrase() != null)) { privacyKey = user.getPrivacyPassphrase().getValue(); } } } }
/** * Creates a user with user name and associated {@link UsmUser}. * @param userName * the user name of the new entry. * @param user * the <code>UsmUser</code> representing the security information of the * user. */ public UsmUserEntry(OctetString userName, UsmUser user) { this.userName = userName; this.usmUser = user; if (user.isLocalized()) { this.engineID = user.getLocalizationEngineID(); if ((user.getAuthenticationProtocol() != null) && (user.getAuthenticationPassphrase() != null)) { authenticationKey = user.getAuthenticationPassphrase().getValue(); if ((user.getPrivacyProtocol() != null) && (user.getPrivacyPassphrase() != null)) { privacyKey = user.getPrivacyPassphrase().getValue(); } } } }
case colUsmUserLocalizationEngineID: setValue(column, (userEntry.getUsmUser().isLocalized()) ? userEntry.getUsmUser().getLocalizationEngineID() : null); break; case colUsmUserAuthKey: {
case colUsmUserLocalizationEngineID: setValue(column, (userEntry.getUsmUser().isLocalized()) ? userEntry.getUsmUser().getLocalizationEngineID() : null); break; case colUsmUserAuthKey: {
private Variable[] getValuesFromUsmUser(UsmUserEntry user) { Variable[] row = new Variable[usmUserEntry.getColumnCount()+5]; int n = 0; row[n++] = user.getUsmUser().getSecurityName(); row[n++] = null; row[n++] = user.getUsmUser().getAuthenticationProtocol(); row[n++] = null; row[n++] = null; row[n++] = user.getUsmUser().getPrivacyProtocol(); row[n++] = null; row[n++] = null; row[n++] = new OctetString(); row[n++] = new Integer32(StorageType.nonVolatile); row[n++] = new Integer32(RowStatus.active); row[n++] = user.getUsmUser().getAuthenticationPassphrase(); row[n++] = user.getUsmUser().getPrivacyPassphrase(); row[n++] = user.getUsmUser().getLocalizationEngineID(); row[n++] = (user.getAuthenticationKey() == null) ? null : new OctetString(user.getAuthenticationKey()); row[n++] = (user.getPrivacyKey() == null) ? null : new OctetString(user.getPrivacyKey()); return row; }
private Variable[] getValuesFromUsmUser(UsmUserEntry user) { Variable[] row = new Variable[usmUserEntry.getColumnCount()+5]; int n = 0; row[n++] = user.getUsmUser().getSecurityName(); row[n++] = null; row[n++] = user.getUsmUser().getAuthenticationProtocol(); row[n++] = null; row[n++] = null; row[n++] = user.getUsmUser().getPrivacyProtocol(); row[n++] = null; row[n++] = null; row[n++] = new OctetString(); row[n++] = new Integer32(user.getStorageType().getSmiValue()); row[n++] = new Integer32(RowStatus.active); row[n++] = user.getUsmUser().getAuthenticationPassphrase(); row[n++] = user.getUsmUser().getPrivacyPassphrase(); row[n++] = user.getUsmUser().getLocalizationEngineID(); row[n++] = (user.getAuthenticationKey() == null) ? null : new OctetString(user.getAuthenticationKey()); row[n ] = (user.getPrivacyKey() == null) ? null : new OctetString(user.getPrivacyKey()); return row; }
userEngineID = user.getLocalizationEngineID(); } else { userEngineID = (engineID == null) ? new OctetString() : engineID;
userEngineID = user.getLocalizationEngineID();
userEngineID = user.getLocalizationEngineID();
row.setValue(colUsmUserAuthPassword, user.getAuthenticationPassphrase()); row.setValue(colUsmUserPrivPassword, user.getPrivacyPassphrase()); row.setValue(colUsmUserLocalizationEngineID, user.getLocalizationEngineID()); row.setValue(colUsmUserAuthKey, (event.getUser().getAuthenticationKey() == null) ? null : new OctetString(event.getUser().getAuthenticationKey()));