Generates the next MediaWiki API urlEncodedToken and adds it to <code>msgs</code>.

@param intoken type to get the urlEncodedToken for
@param title title of the article to generate the urlEncodedToken for
977579
private static Get generateTokenRequest(Intoken intoken, String title) {
    return new ApiRequestBuilder() //
        .action("query") //
        .formatXml() //
        .param("prop", "info") //
        .param("intoken", intoken.toString().toLowerCase()) //
        .param("titles", MediaWiki.urlEncode(title)) //
        .buildGet();
  }
45498
public void addCustomAlertTitleLocKey(String titleLocKey) throws JSONException {
		Object value = titleLocKey != null ? titleLocKey : new JSONNull();
		put("title-loc-key", titleLocKey, getOrAddCustomAlert(), false);
	}
179417
public ItemDocumentBuilder withSiteLink(String title, String siteKey,
			ItemIdValue... badges) {
		withSiteLink(factory.getSiteLink(title, siteKey, Arrays.asList(badges)));
		return this;
	}
881916
@Override
    public void setTitles(String[] titles) {
        if(titles!=null){
            mLinearLayoutPinTexts.removeAllViews();
            mPinTitles = titles;
            pinTitlesIds = new int[titles.length];
            for (int i = 0; i < titles.length; i++) {
                mLinearLayoutPinTexts.addView(generatePinText(i, titles), i);
            }
        }
    }
304999
function(title, prefix) {
	      var base = mInstance.url || mInstance._url(prefix);
	      return base + '/wiki/' + title;
	    }
900672
public OmdbBuilder setTitle(final String title) throws OMDBException {
        if (StringUtils.isBlank(title)) {
            throw new OMDBException(ApiExceptionType.UNKNOWN_CAUSE, "Must provide a title!");
        }
        params.add(Param.TITLE, title);
        return this;
    }
771754
TextView generatePinText(int i, String[] titles) {
        TextView pinTitle = (TextView) LayoutInflater.from(getContext())
                .inflate(R.layout.partial_pin_text, this, false);
        int generateViewId = PinViewUtils.generateViewId();
        pinTitle.setId(generateViewId);
        pinTitle.setText(titles[i]);
        setStylesPinTitle(pinTitle);
        pinTitlesIds[i] = generateViewId;
        return pinTitle;
    }
1206044
@Override
    public IdentityToken encodeIdentityToken(Codec codec) {
        IdentityToken token = null;

        SubjectManager subjectManager = new SubjectManager();
        Subject subject = subjectManager.getInvocationSubject();
        if (subject == null) {
            subject = subjectManager.getCallerSubject();
        }

        /*
         * At this point, we have either the invocation subject or the caller subject. Now we need to extract the
         * credentials from this subject. We will use the SubjectHelper utility class to acheive the same.
         */
        SubjectHelper subjectHelper = new SubjectHelper();
        WSCredential wsCredential = subjectHelper.getWSCredential(subject);
        /*
         * in wsCredential object, the certificate is stored against the property name "wssecurity.identity_value".
         * We need to get the value corresponding to this property name.
         */
        try {
            /*
             * Now, from the WSCredential, make sure that the identity token type is certificate chain. To do this,
             * get the value of the property called "wssecurity.identity_name"
             */
            String identityTypeValue = (String) wsCredential.get(Constants.IDENTITY_NAME);
            /*
             * The identityTypeValue must be “ClientCertificate”. There is no point in continuing the process
             * if the value is not “ClientCertificate”
             */
            boolean isITTCert = Constants.ClientCertificate.equalsIgnoreCase(identityTypeValue);
            /* Get the certificate chain from WSCredential */
            X509Certificate[] certificateChain = (X509Certificate[]) wsCredential.get(Constants.IDENTITY_VALUE);

            if (isITTCert && (certificateChain != null)) {
                token = new IdentityToken();
                byte[] encodedCertificateChain = Util.encodeCertChain(codec, certificateChain);
                token.certificate_chain(encodedCertificateChain);
            } else {
                /*
                 * This else means, either the token type is not set to certificate, or the certificate does not exist.
                 * In either case, we need to throw an exception. This exception will be captured in the catch
                 * block, along with other possible exceptions like CredentialExpiredException and
                 * CredentialDestroyedException.
                 */
                if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                    Tr.debug(tc, "Certificate is not available to continue with Identity Assertion. identityTypeValue=" + identityTypeValue);
                }
                String messageFromBundle = Tr.formatMessage(tc, "CSIv2_CLIENT_ASSERTION_CERTIFICATE_INVALID");
                throw new Exception(messageFromBundle);
            }
        } catch (Exception e) {
            /*
             * We consolidate all possible exceptions here. We log the message and then throw them as a single
             * NO_PERMISSION exception
             */
            if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                Tr.debug(tc, "The client cannot create the ITTX509CertChain identity assertion token. The exception message is: " + e.getMessage());
            }
            String messageFromBundle = Tr.formatMessage(tc, "CSIv2_CLIENT_ASSERTION_CANNOT_ENCODE_CC", e.getMessage());
            throw new org.omg.CORBA.NO_PERMISSION(messageFromBundle, SecurityMinorCodes.CREDENTIAL_NOT_AVAILABLE, org.omg.CORBA.CompletionStatus.COMPLETED_NO);

        }
        return token;
    }
105266
public String title() {
		String s = (String) annotationAttributes.get(TITLE);
		if (s == null)
			s = "";
		return s;
	}
990258
public void setTitle(final String title) {
        if (this.title == null) {
            this.title = new Content();
        }
        this.title.setValue(title);
    }
658297
def title(msg):
    """"""
    if sys.platform.startswith("win"):
        ctypes.windll.kernel32.SetConsoleTitleW(tounicode(msg))
1137015
public Title getSectionHeading() {
    if (Section_Type.featOkTst && ((Section_Type)jcasType).casFeat_sectionHeading == null)
      jcasType.jcas.throwFeatMissing("sectionHeading", "de.julielab.jules.types.Section");
    return (Title)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((Section_Type)jcasType).casFeatCode_sectionHeading)));}
239993
public String getFullname() {
    if (Title_Type.featOkTst && ((Title_Type)jcasType).casFeat_fullname == null)
      jcasType.jcas.throwFeatMissing("fullname", "de.julielab.jules.types.wikipedia.Title");
    return jcasType.ll_cas.ll_getStringValue(addr, ((Title_Type)jcasType).casFeatCode_fullname);}
608185
public void setTitle(final String title) {
        if (title == null && this.title == null) {
            return;
        } else if (title == null) {
            removeChild(this.title);
            this.title = null;
        } else if (this.title == null) {
            this.title = new KeyValueNode<String>(CommonConstants.CS_TITLE_TITLE, title);
            appendChild(this.title, false);
        } else {
            this.title.setValue(title);
        }
    }
1171362
def wikidata(self, title, wikibase=None):
        
        self.domain = 'www.wikidata.org'
        self.uri = self.wiki_uri(self.domain)

        query = self.WIKIDATA.substitute(
            WIKI=self.uri,
            ENDPOINT=self.endpoint,
            LANG=self.variant or self.lang,
            PROPS="aliases|info|claims|descriptions|labels|sitelinks")

        if wikibase:
            query += "&ids=%s" % wikibase
        elif title:
            title = safequote(title)
            query += "&sites=%swiki" % self.lang
            query += "&titles=%s" % title

        self.set_status('wikidata', wikibase or title)

        return query
860562
private static String generateSignature(AuthToken token) {
        StringBuilder builder = new StringBuilder();
        builder.append(token.getPrincipal());
        builder.append("||"); //$NON-NLS-1$
        builder.append(token.getExpiresOn().getTime());
        builder.append("||"); //$NON-NLS-1$
        builder.append(token.getIssuedOn().getTime());
        builder.append("||"); //$NON-NLS-1$
        TreeSet<String> roles = new TreeSet<>(token.getRoles());
        boolean first = true;
        for (String role : roles) {
            if (first) {
                first = false;
            } else {
                builder.append(","); //$NON-NLS-1$
            }
            builder.append(role);
        }
        builder.append("||"); //$NON-NLS-1$
        builder.append(sharedSecretSource.getSharedSecret());
        return DigestUtils.sha256Hex(builder.toString());
    }
923240
public String getHtml(String title) {

        return "<span class=\"v-icon "
            + m_styleName
            + " "
            + m_additionalButtonStyle
            + "\" title=\""
            + title
            + "\">&#x"
            + Integer.toHexString(getCodepoint())
            + ";</span>";
    }