docs: private void setUpTemporarySubject() throws Exception {
          temporarySubject = new Subject();
          UserRegistry ur = getUserRegistry();
          String accessId = AccessIdUtil.createAccessId(AccessIdUtil.TYPE_USER,
                                                        ur.getRealm(),
                                                        ur.getUniqueUserId(username));
          setWSPrincipal(temporarySubject, securityName, accessId, WSPrincipal.AUTH_METHOD_CERTIFICATE);
          setCredentials(temporarySubject, securityName, username);
          setOtherPrincipals(temporarySubject, securityName, accessId, WSPrincipal.AUTH_METHOD_CERTIFICATE, null);
      }