@Override public boolean isSupported() { return Profile.isFeatureEnabled(Profile.Feature.AUTHZ_DROOLS_POLICY); } }
public static void init() { CURRENT = new Profile(); }
public boolean isRequired(ClientConnection connection) { return isRequired(connection.getRemoteAddr()); }
String algorithm = "MD5withRSA"; // Initialize JCE provider Signature verifier = Signature.getInstance(algorithm); // Do the verification boolean result=false; try { verifier.initVerify(cert); // This one checks key usage in the cert verifier.update(data); result = verifier.verify(sigBytes); } catch (Exception e) { throw new VerificationException("Verification error: "+e, e); }
public static ProfileInfoRepresentation create() { ProfileInfoRepresentation info = new ProfileInfoRepresentation(); info.name = Profile.getName(); info.disabledFeatures = names(Profile.getDisabledFeatures()); info.previewFeatures = names(Profile.getPreviewFeatures()); info.experimentalFeatures = names(Profile.getExperimentalFeatures()); return info; }
public static String getName() { return CURRENT.profile.name().toLowerCase(); }
@Override public boolean test(JsonWebToken t) throws VerificationException { if (expectedAudience == null) { throw new VerificationException("Missing expectedAudience"); } String[] audience = t.getAudience(); if (audience == null) { throw new VerificationException("No audience in the token"); } if (t.hasAudience(expectedAudience)) { return true; } throw new VerificationException("Expected audience not available in the token"); } };
@Override public boolean test(JsonWebToken t) throws VerificationException { String subject = t.getSubject(); if (subject == null) { throw new VerificationException("Subject missing in token"); } return true; } };
private void updateUI(){ boolean enableButtons = AccessToken.getCurrentAccessToken() != null; Profile profile = Profile.getCurrentProfile(); if (profile == null) { Log.e("Profile", "null"); } if (enableButtons && profile != null) { Log.e("Access Token",AccessToken.getCurrentAccessToken().toString()); Log.e("TabSocial", profile.getName()); }
public void verifyPostBindingSignature(Document document, KeyLocator keyLocator) throws VerificationException { SAML2Signature saml2Signature = new SAML2Signature(); try { if (!saml2Signature.validate(document, keyLocator)) { throw new VerificationException("Invalid signature on document"); } } catch (ProcessingException e) { throw new VerificationException("Error validating signature", e); } }
AccessToken token = loginResult.getAccessToken(); Profile user = Profile.getCurrentProfile(); String name = user.getName(); Toast.makeText(Login.this, "Connected "+name , Toast.LENGTH_LONG).show();
Profile profile = Profile.getCurrentProfile(); if(null != profile) textView.setText(profile.getName());
Profile profile = Profile.getCurrentProfile(); if(null != profile) { new ProfileTracker() { @Override protected void onCurrentProfileChanged(Profile oldProfile, Profile currentProfile) { if (currentProfile != null) { // handle it stopTracking(); } } }.startTracking(); } else { textView.setText(profile.getName()); }
Profile actualProfile = Profile.getCurrentProfile(); String name = actualProfile.getName();
Profile profile = Profile.getCurrentProfile; String name = profile.getName();
else if (user.isNew()) { Profile profile = Profile.getCurrentProfile(); user.put("gender", ""); user.put("location", ""); user.put("age", ""); user.put("meet", ""); user.put("status", ""); user.put("link", ""); user.put("fullname", profile.getName()); user.setEmail(""); user.signUpInBackground(); ParseInstallation installation = ParseInstallation.getCurrentInstallation(); installation.put("user", user.getObjectId()); installation.put("fullname", user.getString("fullname")); installation.saveInBackground(); openMainActivity(); }
Profile profile; String name; try{ profile = Profile.getCurrentProfile(); name = profile.getName(); }catch(NullPointerException npe){ npe.printStackTrace(); }
@Override public void onSuccess(LoginResult loginResult) { AccessToken accessToken = AccessToken.getCurrentAccessToken(); Profile profile = Profile.getCurrentProfile(); if(profile != null){ mTextDetails.setText("Welcome " + profile.getName() ); } else { ProfileTracker profileTracker = new ProfileTracker() { @Override protected void onCurrentProfileChanged(Profile oldProfile, Profile currentProfile) { this.stopTracking(); Profile.setCurrentProfile(currentProfile); mTextDetails.setText("Welcome " + currentProfile.getName() ); } }; profileTracker.startTracking(); } }