UaaAuthenticationDetails implements Serializable { public String getClientId() { return clientId; } private  UaaAuthenticationDetails();  UaaAuthenticationDetails(HttpServletRequest request);  UaaAuthenticationDetails(HttpServletRequest request, String clientId);  UaaAuthenticationDetails(@JsonProperty("addNew") boolean addNew,
                                    @JsonProperty("clientId") String clientId,
                                    @JsonProperty("origin") String origin,
                                    @JsonProperty("sessionId") String sessionId); String getOrigin(); String getSessionId(); String getClientId(); boolean isAddNew(); void setAddNew(boolean addNew); UaaLoginHint getLoginHint(); void setLoginHint(UaaLoginHint loginHint); Map<String, String[]> getParameterMap(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); static final String ADD_NEW; static final UaaAuthenticationDetails UNKNOWN; }
@Test void testBuildValidAuthenticationDetails() { MockHttpServletRequest request = new MockHttpServletRequest(); request.setAttribute("clientId", "a"); UaaAuthenticationDetails details = new UaaAuthenticationDetails(request); assertEquals("a", details.getClientId()); }
@Test void testBuildWithoutAuthenticationDetails() { MockHttpServletRequest request = new MockHttpServletRequest(); UaaAuthenticationDetails details = new UaaAuthenticationDetails(request); assertNull(details.getClientId()); }