@Override protected IdentityZoneWithKeyManager initialValue() { if (provisioning == null) { return new IdentityZoneWithKeyManager(IdentityZone.getUaa(), null); } IdentityZone zone = getUaaZone(); return new IdentityZoneWithKeyManager(zone, null); }
public static boolean isUaa() { return THREADLOCAL.get().getZone().getId().equals(IdentityZone.getUaa().getId()); }
public static IdentityZone getUaaZone() { if (provisioning == null) { return IdentityZone.getUaa(); } return provisioning.retrieve(IdentityZone.getUaa().getId()); }