{
modifier.setExpiration( KerberosTime.getTime( val ) );
}
catch ( ParseException e )
{
throw new InvalidAttributeValueException( "Account expiration attribute "
+ KerberosAttribute.KRB5_ACCOUNT_EXPIRATION_TIME_AT + " contained an invalid value for generalizedTime: "
+ val );
}
}
if ( entry.get( KerberosAttribute.APACHE_SAM_TYPE_AT ) != null )
{
String samType = entry.get( KerberosAttribute.APACHE_SAM_TYPE_AT ).getString();
modifier.setSamType( SamType.getTypeByOrdinal( Integer.parseInt( samType ) ) );
}
if ( entry.get( KerberosAttribute.KRB5_KEY_AT ) != null )
{
EntryAttribute krb5key = entry.get( KerberosAttribute.KRB5_KEY_AT );
try
{
Map<EncryptionType, EncryptionKey> keyMap = modifier.reconstituteKeyMap( krb5key );
modifier.setKeyMap( keyMap );
}
catch ( IOException ioe )
{
throw new InvalidAttributeValueException( I18n.err( I18n.ERR_623, KerberosAttribute.KRB5_KEY_AT ) );
}
}
return modifier.getEntry();
}