public AuthenticationInfo retrieveAuthenticationInfo() { return authenticationData.toObject(AuthenticationInfo.class); }
/** * reconstructs the original object the {@link BeanDescription} is representing. */ public Object toObject() { Class<?> beanType = getBeanType(); return toObject(beanType); }
/** * reconstructs the original object the {@link BeanDescription} is representing. */ @SuppressWarnings("unchecked") public <T> T toObject(Class<T> type) { Class<?> beanType = getBeanType(); Preconditions .checkArgument(type.isAssignableFrom(beanType), "types are not compatible (%s,%s)", type, beanType); return (T) toObject(); }