Toggle navigation
Home
org.neo4j.kernel.enterprise.api.security.EnterpriseLoginContext to org.neo4j.kernel.enterprise.api.security.EnterpriseSecurityContext
No. of Instances - 27
No. of Commits - 1
No. of Projects - {'neo4j'}
Hierarchy/Composition: -
Primitive Info: -
NameSpace: Internal -> Internal
Mapping:
Add or Remove Method invocation
mike.authorize(token).mode()
to
mike.mode()
mike.authorize(token).mode()
to
mike.mode()
mike.authorize(token).mode()
to
mike.mode()
mike.authorize(token).mode()
to
mike.mode()
mike.authorize(token).mode()
to
mike.mode()
securityContext.subject()
to
securityContext
securityContext.subject()
to
securityContext
mike.authorize(token).mode()
to
mike.mode()
mike.authorize(token).mode()
to
mike.mode()
Cascading Type Change (Similar)
EnterpriseLoginContext
to
EnterpriseSecurityContext
EnterpriseLoginContext
to
EnterpriseSecurityContext
Rename Method invocation
createFakeAnonymousEnterpriseLoginContext
to
createFakeAnonymousEnterpriseSecurityContext
Rename Variable
unAuthSubject
to
authy
loginContext
to
subject
loginContext
to
securityContext
createFakeAnonymousEnterpriseLoginContext
to
createFakeAnonymousEnterpriseSecurityContext
loginContext
to
securityContext
loginContext
to
securityContext
loginContext
to
securityContext
loginContext
to
subject
loginContext
to
securityContext
Update Anonymous class
{ @Override public EnterpriseSecurityContext authorize( Token token){ return new EnterpriseSecurityContext(subject(),inner.mode(),Collections.emptySet(),false); } @Override public Set<String> roles(){ return Collections.emptySet(); } SecurityContext inner=AnonymousContext.none().authorize(mock(Token.class)); @Override public AuthSubject subject(){ return inner.subject(); } }
to
{ @Override public EnterpriseSecurityContext freeze(){ return this; } @Override public EnterpriseSecurityContext withMode( AccessMode mode){ return new EnterpriseSecurityContext.Frozen(subject(),mode,roles(),isAdmin()); } @Override public Set<String> roles(){ return Collections.emptySet(); } AnonymousContext inner=AnonymousContext.none(); @Override public AuthSubject subject(){ return inner.subject(); } @Override public AccessMode mode(){ return inner.mode(); } @Override public boolean isAdmin(){ return false; } }
Cascading Type Change (Different)
StandardEnterpriseLoginContext
to
StandardEnterpriseSecurityContext
StandardEnterpriseLoginContext
to
StandardEnterpriseSecurityContext
StandardEnterpriseLoginContext
to
StandardEnterpriseSecurityContext